From claude-flow
Quick test runner - run pytest and analyze results without permission prompts
How this command is triggered — by the user, by Claude, or both
Slash command
/claude-flow:autotestThe summary Claude sees in its command listing — used to decide when to auto-load this command
# Autotest Protocol Run the project's test suite and analyze the output. ## Steps: ### 1. Identify Test Command Check CLAUDE.md or use common patterns: - Python: `pytest tests/ -v --tb=short` - REPLAYER: `cd src && python3 -m pytest tests/ -v` - With venv: `.venv/bin/python -m pytest tests/ -v` ### 2. Run Tests Execute the test command. Do NOT ask for permission. ### 3. Analyze Output **If ALL PASS:** **If FAILURES:** ### 4. Update Scratchpad Record test results in scratchpad if significant. ## Common Issues: - Missing dependencies: Check venv activation - Import errors: Check PY...
Run the project's test suite and analyze the output.
Check CLAUDE.md or use common patterns:
pytest tests/ -v --tb=shortcd src && python3 -m pytest tests/ -v.venv/bin/python -m pytest tests/ -vExecute the test command. Do NOT ask for permission.
If ALL PASS:
✅ All tests passing ([count] tests)
Ready for: [next SDLC phase]
If FAILURES:
❌ [count] tests failed
## Failures:
- test_name: [brief reason]
## Suggested Actions:
1. [action 1]
2. [action 2]
Record test results in scratchpad if significant.
$ARGUMENTS
npx claudepluginhub joshuarweaver/cascade-ai-ml-agents-misc-2 --plugin dutchthenomad-claude-flow/testRuns all automated tests (unit + integration + UAT) with pytest including coverage report and verbose output. Optional test path (default: tests/). Time: <60s.
/testRuns project test suite by auto-detecting type (Python, Node.js, Java, .NET, Go, Rust) and executing tests (pytest, npm test, mvn test, etc.). Reports pass/fail, details failures, suggests fixes.
/test-and-fixRuns tests and iteratively fixes failures until all tests pass, with support for scoping to a specific file or pattern.
/analyze-testsAnalyzes Python test suites in current or specified directories for quality, coverage, structure, patterns, and performance, reporting metrics, scores, and improvement recommendations.
/run-testsDetects the test framework, runs affected tests from git changes first, then full suite tiered by unit and integration, and analyzes failures with suggested fixes.