en un clic
codecov-coverage
// Fetch and analyze code coverage from Codecov API for the linkml project. Use when checking coverage before making a PR, analyzing coverage changes, or finding low-coverage files.
// Fetch and analyze code coverage from Codecov API for the linkml project. Use when checking coverage before making a PR, analyzing coverage changes, or finding low-coverage files.
| name | codecov-coverage |
| description | Fetch and analyze code coverage from Codecov API for the linkml project. Use when checking coverage before making a PR, analyzing coverage changes, or finding low-coverage files. |
| allowed-tools | WebFetch, Bash |
Fetch and analyze code coverage data from Codecov for the LinkML project.
PRs must not decrease coverage. The CI will flag coverage decreases.
When adding new code:
Use WebFetch on:
https://codecov.io/gh/linkml/linkml/branch/main/graph/badge.txt
Returns plain text like "80%"
Use WebFetch on:
https://api.codecov.io/api/v2/github/linkml/repos/linkml/totals
Returns JSON with files count, lines, hits, misses, coverage percentage
Use WebFetch on:
https://api.codecov.io/api/v2/github/linkml/repos/linkml/report
Returns per-file coverage data - useful for finding low-coverage files
The UV workspace + src layout breaks local coverage. The .coveragerc specifies source = linkml but packages live at packages/linkml/src/linkml/. Use the Codecov API instead.
These areas currently have low coverage and may need tests:
generators/rustgen/ - experimentalgenerators/dotgen.py - ~47%converter/cli.py - ~53%workspaces/ - minimal coverage