create-test
Installation
SKILL.md
Create Test
Overview
Generate unit tests for code components. The command adapts to backend or frontend code automatically based on the codebase structure and file patterns.
Definitions
- {component}: Component, class, function, or file to test. Can be specified as:
- Class name (e.g.,
OAuthService,UserProfile) - File path (e.g.,
auth-utils.ts,src/services/payment.ts) - Component name (e.g.,
LoginForm,UserDashboard)
- Class name (e.g.,
- Test Type: Type of test to generate (unit, integration, e2e). Currently focuses on unit tests.
- Test Framework: Testing library in use (Jest, Vitest, pytest, unittest, Mocha, xUnit, NUnit, MSTest, etc.)
- Codebase Type: Classification of codebase structure:
- Backend: API routes, services, models, utilities (typically Node.js, Python, Java, etc.)
- Frontend: Components, hooks, utilities (typically React, Vue, Angular, etc.)
- Test File Naming Convention: Pattern for test file names (e.g.,
*.test.ts,*_test.py,*.spec.js,*Test.cs,*Tests.cs) - Arrange-Act-Assert (AAA) Pattern: Test structure: Arrange (setup), Act (execute), Assert (verify)
Related skills