/testing-frameworks:pytest-coveragefrom testing-frameworks
Runs pytest with coverage, reads annotated output to identify uncovered lines, and iteratively adds tests until Python code reaches 100% line coverage. Invoke when the user asks to run pytest coverage, inspect cov_annotate files, cover missing lines, target a module with --cov, or improve test coverage to 100%.
Ships in testing-frameworks. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
cov_annotate directory.| Scope | Command |
|---|---|
| Whole project | pytest --cov --cov-report=annotate:cov_annotate |
| Specific module | pytest --cov=your_module_name --cov-report=annotate:cov_annotate |
| Specific test file and module | pytest tests/test_your_module.py --cov=your_module_name --cov-report=annotate:cov_annotate |
Replace your_module_name and tests/test_your_module.py with the actual package, module, and test path from the repository.
cov_annotate directory after the command completes.cov_annotate and review the annotated source.! as an uncovered line.| Marker | Meaning | Action |
|---|---|---|
! at line start | The line is not covered by tests. | Add a test that executes this line. |
| No uncovered marker and 100% coverage | The file's source lines are fully covered. | Do not spend time opening or changing it. |
| File under 100% coverage | At least one source line still needs coverage. | Review the corresponding annotated file. |
cov_annotate, not just the terminal summary.--cov=your_module_name, keep the coverage loop scoped to that module.### pytest coverage result
**Status:** complete | needs tests | blocked
**Command:** `<pytest coverage command>`
**Coverage target:** 100% line coverage for <project/module/file>
| File | Starting coverage | Uncovered lines reviewed | Final coverage | Notes |
| --- | --- | --- | --- | --- |
| `<source file>` | `<percent>` | `<line numbers or none>` | `<percent>` | `<tests added or reason blocked>` |
**Tests changed**
- `<test file>`: <behavior covered>
**Validation**
- `<pytest coverage command>`: pass | fail
--cov-report=annotate:cov_annotate.cov_annotate directory was inspected after coverage ran.! was mapped to a test or documented as blocked.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
pytest, coverage, test-coverage, python-testing, code-coverage
npx claudepluginhub gbb-acelerators/awesome-harness-primitives --plugin testing-frameworks6 skills in this plugin
/javascript-typescript-jestWrite and review JavaScript and TypeScript Jest tests with strong structure, mocks, async handling, snapshots, and React Testing Library patterns. Use this skill when the user asks to add Jest tests, improve test structure, mock APIs or databases, test async code, update snapshots, or test React components./pester-migrationUpgrade PowerShell Pester test suites across major versions v3 to v4, v4 to v5, and v5 to v6 while preserving test intent. Use when asked to migrate, modernize, or fix *.Tests.ps1 files after a Pester version bump, convert legacy Should or Invoke-Pester syntax, handle Discovery/Run failures, move setup into BeforeAll, migrate mocks, or adopt PesterConfiguration./pester-should-migrationOther plugins' skills for the same job