Closed zchrissirhcz closed 2 years ago
OK, figured out that I'm using the wrong order in the bash script. I should delete doc-coverage.info
first, then generate it via coverxygen. i.e. use the corrected one:
#!/bin/bash
doxygen Doxyfile.in
rm doc-coverage.info
python -m coverxygen --xml-dir ./xml --src-dir ../src --output doc-coverage.info --kind function
lcov --summary doc-coverage.info
genhtml --no-function-coverage --no-branch-coverage doc-coverage.info -o .
echo "python -m http.server 7088"
Hi, coverxygen developers
I'm using doxygen together with coverxygen, lcov to generate document coverage report, for a very naive C++ header file. It confuse me by considering
#pragma once
as function, thus make wrong coverage percentage (25%, instead of expected 33%)The source code I'm using is :
hello.h:
The doxygen configuration file I'm using is
The commands to generate document coverage report is: