/tests — Run Pytest with Coverage & Baseline Tracking
The user has invoked /tests. Run the project's test suite with coverage, compare results against a local baseline history, and report regressions, improvements, and trends.
Instructions
- Extract pytest arguments (everything after
/testsin the arguments). These are referred to as{PYTEST_ARGS}below. - Use the Task tool to launch the
test-runnersubagent withmodel: "haiku". The prompt MUST include the compare script path. Use this format:- With args:
"Run tests with args: {PYTEST_ARGS}. Compare script: ${CLAUDE_PLUGIN_ROOT}/scripts/compare_results.py" - Without args:
"Run tests. Compare script: ${CLAUDE_PLUGIN_ROOT}/scripts/compare_results.py"
- With args:
- When the subagent returns, relay its result back to the user without modification.
