A massively parallelized gcov wrapper
Minor. bug fixes
--json-format
shortform option. Starting with GCC11, -i
is deprecated in favor of -j
, so using longform avoids future option compatibility issues--zerocounters
and --process-gcno
simultaneously resulted in deletion of the gcno filesMisc. bug fixes and performance improvements
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:
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.
This script will convert a provided fastcov JSON file to the Sonar generic test coverage XML format.
Misc. bug fixes and features, special thanks to @rburtnykx
Description:
--dump-statistic
can now be used to dump coverage statistics of the processed file(s)--validate-sources
can now be used to assert all source files exist--diff-filter
and --diff-base-dir
can be used to apply a unified diff file to a coverage report.info
if --lcov
is passed, .json
otherwise.Description:
Description:
multiprocessing.Process
instead of threading
(should result in 15%+ speedup on larger projects since each gcda worker can now bypass GIL and leverage additional cpu resources)--skip-exclusion-markers
to skip the step where fastcov scans source files for exclusion markersDescription:
--test-name
CLI option (equivalent to lcov's -t
) to support test names (i.e. for use with genhtml --show-details
)--add-tracefile
CLI option (equivalent to lcov's -a
) to support coverage combine operations (i.e. for use with genhtml --show-details
)--verbose
CLI option which prints more debug details (i.e. which coverage files are being skipped/filtered, and why)Description:
Description:
--process-gcno