github/awesome-copilot

pytest-coverage

Run pytest tests with coverage, discover lines missing coverage, and increase coverage to 100%.

Ver código fuente
Documento original del Skill

Contenido del repositorio de origen con títulos, ejemplos, código, tablas, enlaces e imágenes preservados.

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=yourmodulename --cov-report=annotate:cov_annotate

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

pytest tests/testyourmodule.py --cov=yourmodulename --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.

del mismo repositorio

Más Skills

Todos los Skills
github
Oficial

git-commit

Execute git commit with conventional commit message analysis, intelligent staging, and message generation. Use when user asks to commit changes, create a git commit, or mentions "/commit". Supports: (1) Auto-detecting type and scope from changes, (2) Generating conventional commit messages from diff, (3) Interactive commit with optional type/scope/description overrides, (4) Intelligent file staging for logical grouping

instalaciones
44,4 mil
GitHub Stars
38,7 mil
Actualizado
8 sept
github
Oficial

excalidraw-diagram-generator

Generate Excalidraw diagrams from natural language descriptions. Use when asked to "create a diagram", "make a flowchart", "visualize a process", "draw a system architecture", "create a mind map", or "generate an Excalidraw file". Supports flowcharts, relationship diagrams, mind maps, and system architecture diagrams. Outputs .excalidraw JSON files that can be opened directly in Excalidraw.

instalaciones
3
GitHub Stars
38,7 mil
Actualizado
8 sept
github
Oficial

codebase-memory-mcp

Use when exploring unfamiliar code, mapping architecture, finding symbols or relationships, tracing callers, callees, data flow or dependencies, assessing impact, auditing dead or complex code, or handling explicit Codebase Memory requests. Otherwise skip tasks confined to a supplied known file, tiny one-file check, exact literal, configuration value, error string, or non-code text.

instalaciones
1
GitHub Stars
38,7 mil
Actualizado
8 sept
github
Oficial

java-springboot

Get best practices for developing applications with Spring Boot.

instalaciones
1
GitHub Stars
38,7 mil
Actualizado
8 sept