Coverage Report¤
Inserts a coverage report into the docs set.
Based on pawamoy's work.
LP Header Syntax: bash lp mode=cov_report [dir=<report dir>]
The report must exist in the file system at evaluation time at
dirparameter or$d_cover_htmlenv var
Features:¤
- While LP blocks are running, the LP plugin creates a coverage context, with the current markdown file.
- When the lp plugin has a non empty config value for
coverage_backrefs, a link will be created back to the markdown source with the lp block.
Example¤

Mechanics¤
How to create coverage reports in general: See the coverage setup in this repo's make file.
- At CI/CD ,
make testsandmake docsare run, both creating their coverage data file. make covercombines them and creates the html report.- Finally at
mkdocs gh-deploytime, the html report is copied over to the site directory, so that it is present in the docu build.