Closed villaa closed 2 years ago
Here is the lcov tool to get code coverage. The output files can be uploaded to the codecov hosting service to get a coverage badge.
This website will be a good one to host our code coverage information.
Based on the http://ltp.sourceforge.net/coverage/lcov/readme.php docs and what we have done so far, here is a general outline of how I think the coverage works:
-fprofile-arcs -ftest-coverage
in any files you want coverage tested on in the Makefile.-lcov
or --coverage
for any binaries that will include what you want tested.
-lcov
- might need --coverage
or even both. Still testing this one.lcov --directory dirname --zerocounters
before running your test case. Otherwise, you may get false positives left over from a previous test case.lcov --directory dirname --capture --output-file filename.info
genhtml filename.info -o outputdirname
.
outputdirname/index.html
.@gerudo7 With PR #69 we have this issue mostly sewn up. I will start a release of v1.3.1
. One small thing I will try to address in the release is that the current bash
method for updating the code coverage information is deprecated and will disappear on Feb. 1 2022--here is the new method.
Resolved by PR #69
Automated tests: Are there automated tests or manual steps described so that the functionality of the software can be verified?