Group results logically (by test file or category)
Use file:line references for failures and missing coverage
Provide clear next steps
Default Run (All Tests)
Read prd/00_technology.md to find the correct test commands
Run tests with coverage (example patterns):
# See prd/00_technology.md for your specific command
{test_runner} tests/ --coverage
Report results:
==================== Test Results ====================
✅ Passed: 42
❌ Failed: 0
⏭️ Skipped: 2
⏱️ Duration: 3.45s
==================== Coverage ====================
Name Stmts Miss Cover
-----------------------------------------------------
src/{project}/__init__ 2 0 100%
src/{project}/main 45 0 100%
...
-----------------------------------------------------
TOTAL 523 0 100%
✅ Coverage requirement met
Specific Target
# Test a specific file
/test tests/unit/test_config
# Test a specific class/describe
/test tests/unit/test_api::TestHealthCheck
# Test a specific function/it
/test tests/unit/test_api::test_health_check
# Test a directory
/test tests/integration/
Coverage Analysis
If coverage < minimum:
⚠️ Coverage below requirement: 95% (required: {min_coverage}%)
Missing coverage in:
- src/{project}/services/user:45-52 (error handling)
- src/{project}/api/auth:78-85 (edge case)
Suggested tests to add:
1. Test error handling in UserService.create()
2. Test authentication timeout scenario
Generate detailed report if available in your stack
Integration Tests
When running integration tests:
Check dependencies are running (Docker services, etc.)
Run with integration marker from your test framework
Verify cleanup after tests
Quality Gates
The test skill enforces these quality gates (see prd/00_technology.md for specific values):
1---2name: test3description: Run tests with coverage reporting and quality gates.4---56# /test78Run tests with coverage reporting and quality gates.910## Usage1112```13/test [target] [--coverage] [--watch] [--failed] [--verbose]14```1516## Arguments1718- `target`: Specific test file, directory, or test name (optional)19- `--coverage`: Generate coverage report (default: true)20- `--watch`: Watch mode for continuous testing21- `--failed`: Re-run only failed tests22- `--verbose`: Verbose output2324## Instructions2526When this skill is invoked:2728### Agent Behavior (Codex-Max Pattern)2930**Autonomy:**31- Complete test execution and analysis end-to-end32- If tests fail, analyze failures and suggest specific fixes33- If coverage is low, identify missing test cases and offer to implement them34- Don't just report results - provide actionable next steps3536**Thoroughness:**37- Run full quality suite, not just tests38- Check `prd/00_technology.md` for project-specific commands:39 ```bash40 {lint_command} # Linting41 {type_check_command} # Type checking42 {test_coverage_command} # Tests with coverage43 ```44- Report on all aspects: tests, coverage, linting, type checking4546**Problem-Solving:**47- If tests fail:48 1. Show the failure details with file:line references49 2. Analyze the root cause50 3. Suggest or implement the fix51 4. Re-run tests to verify52- If coverage is low:53 1. Identify uncovered lines (show file:line references)54 2. Suggest test cases to add55 3. Offer to implement the missing tests5657**Presentation:**58- Lead with overall status (pass/fail, coverage %)59- Group results logically (by test file or category)60- Use file:line references for failures and missing coverage61- Provide clear next steps6263### Default Run (All Tests)64651. **Read `prd/00_technology.md`** to find the correct test commands66672. **Run tests with coverage** (example patterns):68 ```bash69 # See prd/00_technology.md for your specific command70 {test_runner} tests/ --coverage71 ```72733. **Report results**:74 ```75 ==================== Test Results ====================7677 ✅ Passed: 4278 ❌ Failed: 079 ⏭️ Skipped: 280 ⏱️ Duration: 3.45s8182 ==================== Coverage ====================8384 Name Stmts Miss Cover85 -----------------------------------------------------86 src/{project}/__init__ 2 0 100%87 src/{project}/main 45 0 100%88 ...89 -----------------------------------------------------90 TOTAL 523 0 100%9192 ✅ Coverage requirement met93 ```9495### Specific Target9697```bash98# Test a specific file99/test tests/unit/test_config100101# Test a specific class/describe102/test tests/unit/test_api::TestHealthCheck103104# Test a specific function/it105/test tests/unit/test_api::test_health_check106107# Test a directory108/test tests/integration/109```110111### Coverage Analysis1121131. **If coverage < minimum**:114 ```115 ⚠️ Coverage below requirement: 95% (required: {min_coverage}%)116117 Missing coverage in:118 - src/{project}/services/user:45-52 (error handling)119 - src/{project}/api/auth:78-85 (edge case)120121 Suggested tests to add:122 1. Test error handling in UserService.create()123 2. Test authentication timeout scenario124 ```1251262. **Generate detailed report** if available in your stack127128### Integration Tests129130When running integration tests:1311321. **Check dependencies are running** (Docker services, etc.)1332. **Run with integration marker** from your test framework1343. **Verify cleanup** after tests135136### Quality Gates137138The test skill enforces these quality gates (see `prd/00_technology.md` for specific values):139140| Gate | Requirement | Action on Failure |141|------|-------------|-------------------|142| Coverage | Minimum % | Block merge |143| All tests pass | 0 failures | Block merge |144| No skipped (without reason) | Documented skips only | Warn |145| Performance | No test > configured limit | Warn |146147## Example Output148149```150$ /test151152🧪 Running tests...153154tests/unit/test_config::TestSettings::test_default_values PASSED155tests/unit/test_config::TestSettings::test_is_development PASSED156tests/unit/test_api::test_health_check PASSED157tests/unit/test_api::test_root_endpoint PASSED158159==================== 4 passed in 0.45s ====================160161📊 Coverage: 100% ✅162```
Run npx skillmds@latest add coreindustries/test in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Run tests with coverage reporting and quality gates. It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. Capability flags: docs only. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
coreindustries (@coreindustries) published this skill. Their other Agent Skills are listed on their SkillMD profile.