test-runner
Runs tests and explains results. Use when user asks to run tests, check tests, or verify code works.
When & Why to Use This Skill
The Test Runner skill automates the end-to-end software testing process by identifying test files, executing language-specific test suites, and providing intelligent analysis of results. It streamlines the debugging workflow by interpreting failure logs and offering actionable code fixes, significantly reducing the manual effort required for quality assurance.
Use Cases
- Automated Regression Testing: Quickly verify that new code changes haven't introduced bugs by running existing test suites across Python, JavaScript, or Go environments.
- Intelligent Debugging and Troubleshooting: Automatically analyze complex test failure outputs to identify root causes and receive AI-generated suggestions for immediate resolution.
- Test Suite Discovery: Effortlessly locate and organize scattered test files (e.g., .spec.ts, .test.js, or .py files) within large or unfamiliar codebases using automated glob patterns.
- Pre-commit Verification: Use the skill to ensure all tests pass and meet quality standards before pushing code to a shared repository or CI/CD pipeline.
| name | test-runner |
|---|---|
| description | Runs tests and explains results. Use when user asks to run tests, check tests, or verify code works. |
Test Runner Skill
Instructions
When user asks to run tests:
- Find test files using Glob tool
- Run tests using Bash tool
- Analyze results and explain failures
- Suggest fixes if tests fail
Steps to Follow
Step 1: Discover Tests
Use Glob to find: **/*test*.py, **/*.test.js, **/*.spec.ts
Step 2: Run Tests
# Python
pytest -v
# JavaScript
npm test
# Go
go test ./...
Step 3: Analyze Output
- Count passed/failed
- Identify failure reasons
- Show relevant code snippets
Step 4: Report Format
## Test Results
✅ Passed: X
❌ Failed: Y
### Failures
[List each failure with explanation]
### Suggested Fixes
[Actionable fixes for failures]