run-coverage
Runs pytest and displays coverage reports for Budget Buddy.
Install
mkdir -p .claude/skills/run-coverage && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/17880" && unzip -o skill.zip -d .claude/skills/run-coverage && rm skill.zipInstalls to .claude/skills/run-coverage
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Run the Budget Buddy test suite with a coverage report. Use when asked to run tests, check coverage, see the coverage report, or verify the coverage gate before or after making changes.Key capabilities
- →Run the Budget Buddy pytest suite
- →Print a coverage report
- →Identify lines with no test coverage
- →Verify if total coverage meets the gate
How it works
The skill executes a platform-specific script that runs pytest with coverage reporting options, either using a project virtual environment or the system python.
Inputs & outputs
When to use run-coverage
- →Check test coverage for new code
- →Verify coverage gate status
- →Identify missing test cases
About this skill
Skill: Run Test Coverage
This skill runs the Budget Buddy pytest suite and prints a coverage report so you can see which lines are not yet tested.
How to run it
Run the script for the current platform from this skill's directory:
- On Linux or macOS (including the GitHub Copilot cloud agent), run
run-coverage.sh. - On Windows (local VS Code agent mode), run
run-coverage.ps1.
Each script:
- Selects the project virtual environment (
.venv) if present, otherwise falls back to the systempython. - Runs
pytestwith--cov=. --cov-report=term-missing.
Note: this skill does not pre-approve the
shelltool, so Copilot will ask for confirmation before running the script. To skip that prompt in a trusted demo, addallowed-tools: shellto the frontmatter above. Only do this if you trust the skill and its scripts.
Interpreting the result
- The
Missingcolumn lists line numbers with no test coverage. These are good candidates for new tests. - The run fails if total coverage is below the gate in
pytest.ini. During the demo this gate is raised from 30 to 90.
After running
Summarize the current coverage percentage and call out the modules with the most uncovered lines.
When not to use it
- →When not working with the Budget Buddy project
- →When not needing a test coverage report
- →When not using pytest for testing
Limitations
- →This skill is specific to the Budget Buddy pytest suite
- →It requires `pytest` to be available
- →It requires `pytest.ini` for coverage gate configuration
How it compares
This skill automates the execution of pytest with specific coverage flags and report generation, unlike manually running pytest or other test runners.
Compared to similar skills
run-coverage side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| run-coverage (this skill) | 0 | 1mo | Review | Beginner |
| webapp-testing | 0 | 2mo | Review | Intermediate |
| ov-update-pytorch-version | 0 | 27d | Review | Advanced |
| transmit-test | 0 | 1mo | Review | Advanced |
Try saying
Example prompts that trigger this skill in your AI assistant.
You might also like
webapp-testing
HaoNgo232
Web application testing principles. E2E, Playwright, deep audit strategies.
ov-update-pytorch-version
openvinotoolkit
Upgrade the PyTorch version used by OpenVINO tests (torch / torchvision / torchaudio) and resolve fallout — missing operator translators, new functionalized `*_copy` aten ops, decomposition changes, FX-only tests failing in TorchScript mode, and accuracy regressions caused by stricter typing. Use wh
transmit-test
KI3P
Run the PTT signal integrity test on the radio transmitter hardware. Use when the user asks to test the transmitter, run a PTT test, check I/Q outputs, or verify transmit signal quality. Requires an Analog Discovery 2 connected to the radio.
python-code-implementation-workflow
NatLabRockies
Implement and refactor Python code with TDD, API signature discipline, and maintainable design. Use for feature development, bug fixes, test-first workflows, and quality-focused refactoring.
backtesting-trading-strategies
jeremylongshore
Backtest crypto and traditional trading strategies against historical data. Calculates performance metrics (Sharpe, Sortino, max drawdown), generates equity curves, and optimizes strategy parameters. Use when user wants to test a trading strategy, validate signals, or compare approaches. Trigger with phrases like "backtest strategy", "test trading strategy", "historical performance", "simulate trades", "optimize parameters", or "validate signals".
python-testing-patterns
wshobson
Implement comprehensive testing strategies with pytest, fixtures, mocking, and test-driven development. Use when writing Python tests, setting up test suites, or implementing testing best practices.