Test Generation
Generate and run tests with the /test workflow.
Overview
Section titled “Overview”The /test command handles test generation and execution.
Analyze code, create test suites, run tests, or check coverage.
run
Execute tests
generate
Create tests
coverage
Coverage report
watch
Live test mode
The Process
Section titled “The Process”1
Run All Tests
/test2
Generate Tests for File
/test src/auth.ts3
Check Coverage
/test coverageExample Session
Section titled “Example Session”agent-session
$
/test src/services/auth.ts
▸
Analyzing auth.ts…
Found 4 functions: login, register, verifyToken, resetPassword
▸
✅ Tests Generated!
Created:
tests/auth.test.tsTest cases: 12
Coverage: 95%
Pro Tips
Section titled “Pro Tips”💡
Test Behavior
Focus on what functions do, not implementation.
💡
Edge Cases
Always test errors, empty inputs, boundaries.
Next Steps
Section titled “Next Steps”- Run
/testto execute your test suite - See Production Deployment which runs tests automatically
