Claude
Skills
Sign in
Back

tests

Included with Lifetime
$97 forever

Run pytest with coverage and baseline tracking. Use when the user invokes /tests.

Data & Analytics

What this skill does


# /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

1. Extract pytest arguments (everything after `/tests` in the arguments). These are referred to as `{PYTEST_ARGS}` below.
2. Use the **Task** tool to launch the `test-runner` subagent with `model: "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"`
3. When the subagent returns, relay its result back to the user **without modification**.

Related in Data & Analytics