Skills github awesome-copilot

pytest-coverage

Use it when:
You want a Python project's tests, or one module's, to cover every line of code.
It does:
Runs pytest --cov with an annotate report, opens the annotated copy of each file under 100%, and adds tests for the lines marked with !
You get:
New tests and a cov_annotate folder of annotated source, with the loop repeated until all lines are covered.
Needs:
pytest set up in your project with its --cov coverage option working.

TL;DR

A short loop for raising test coverage in Python. The agent generates a report with pytest --cov --cov-report=annotate:cov_annotate, narrowed to one module with --cov=<module> or to particular test files if you want. The annotate report writes one copy of each source file into cov_annotate, with every line the tests never ran marked by a leading !. Files already at 100% are skipped; for the rest, the agent reads the marked lines, adds tests that run them, and reruns the report until nothing is left uncovered. The skill says nothing about test style, fixtures or assertions: its target is line coverage only.

Summarizes the skill at 797337f.

npx skills add https://github.com/github/awesome-copilot --skill pytest-coverage
Total Downloads
13,000 on skills.sh, Nov 9, 2026
Repo stars
40,943 github/awesome-copilot
First seen
Feb 25, 2026 on skills.sh
Weekly Downloads
85
+42% over the 8 weeks to Nov 9
Weekly values
Week toInstalls
Sep 2160
Sep 2860
Oct 547
Oct 1247
Oct 1957
Oct 2642
Nov 239
Nov 985
Category

Find root causes, review code and test what you built.

Everything for building software: planning, coding, debugging, design, frameworks, cloud, agents and skills.

Type

A multi-step process the agent follows: interview, debug, run a TDD loop, review.

Effect

Its own steps create or change files, git state or local tools.

Needs

A specific command-line tool or desktop app must be installed, such as gh, agent-browser, LibreOffice, Obsidian or a vendor CLI.

Publisher

A verified publisher on skills.sh, or the company or maintainer behind the product the skill operates.

Topics
Stack

SKILL.md

From github/awesome-copilot at 797337f. Checked daily, last changed Nov 6, 2026.

Frontmatter
name: pytest-coverage
description: 'Run pytest tests with coverage, discover lines missing coverage, and increase coverage to 100%.'

The goal is for the tests to cover all lines of code.

Generate a coverage report with:

pytest --cov --cov-report=annotate:cov_annotate

If you are checking for coverage of a specific module, you can specify it like this:

pytest --cov=your_module_name --cov-report=annotate:cov_annotate

You can also specify specific tests to run, for example:

pytest tests/test_your_module.py --cov=your_module_name --cov-report=annotate:cov_annotate

Open the cov_annotate directory to view the annotated source code. There will be one file per source file. If a file has 100% source coverage, it means all lines are covered by tests, so you do not need to open the file.

For each file that has less than 100% test coverage, find the matching file in cov_annotate and review the file.

If a line starts with a ! (exclamation mark), it means that the line is not covered by tests. Add tests to cover the missing lines.

Keep running the tests and improving coverage until all lines are covered.