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.
/testDetects project type and runs the appropriate test suite (pytest, npm test, mvn test, gradle test, dotnet test, go test, cargo test). Reports pass/fail counts and failure details.
/analyze-testsAnalyzes Python test suites for quality, coverage, and improvement opportunities. Also supports coverage, quality-only, and detailed report modes.
/run-testsRuns a focused subset of the test suite via mk-qa-master, surfaces failures with stack traces, and offers next steps like optimization or re-running failed tests.
/python-testRuns pytest with coverage, displays test results and coverage summary, and identifies uncovered code. Also analyzes failures and suggests fixes.
/test-fixDiagnoses and fixes failing tests by parsing output, categorizing root causes (snapshot, logic, environment, flaky, dependency), applying fixes, and verifying with a full re-run.