Skip to content

fastcov version 1.10

Compare
Choose a tag to compare
@RPGillespie6 RPGillespie6 released this 09 Jan 22:21
· 35 commits to master since this release

Note that v1.9 was skipped because the PyPI uploaded package was incorrect. This release adds a few utilities that are complementary to fastcov. They are located in the utils/ directory, and like fastcov, are single source python scripts that can be copied from this repository and runned directly. Alternatively, installing the latest version of fastcov using pip will also install these utilities. Here is a brief description of what each utility does:

  • utils/fastcov_summary.py

This utility will summarize a provided fastcov JSON file similar to the way genhtml summarizes a given lcov info file. Additionally, flags can be passed that check if a certain coverage threshold is met for function, line, or branch coverage.

This script is useful for 2 purposes. It can be used to print out a coverage summary on the command line for a CI system to parse using regex (such as GitLab CI, for example). This script can also be used to fail builds if (for example) line coverage drops below a certain percentage.

  • utils/fastcov_to_sonarqube.py

This script will convert a provided fastcov JSON file to the Sonar generic test coverage XML format.