/test — Run Test Suite
Run the project's test suite and report results.
Steps
- •Determine scope:
- •
/test→make test(full suite) - •
/test unit→make test-unit(unit tests only) - •
/test intor/test integration→make test-int(integration tests only) - •
/test e2e→make test-e2e(end-to-end tests only) - •
/test [specific file or pattern]→ run tests matching the pattern
- •
- •Run the appropriate command
- •Report results
Output
code
Test Results: - Total: [N] - Passed: [N] ✓ - Failed: [N] ✗ - Skipped: [N] - - Duration: [N]s
On Failure
- •Show failing test names and error messages
- •For each failing test:
- •Show the assertion that failed
- •Show expected vs actual values
- •Analyze the likely cause
- •Suggest fixes (but do NOT apply them without permission)
TDD Mode
- •
/test watch— suggest running the watch mode command for TDD workflow - •Show the appropriate command for the project's test runner