[CMake] gcov results not accurate
David Blado
dblado at decarta.com
Thu Mar 5 14:28:44 EST 2009
Hi All,
Some colleagues and myself are in the process of wiring in coverage
reports through CTest and CDash. We have noticed that the percentage of
code covered is not including source files for which no tests exist.
The percentage isn't accurate because if our library has 8 source files
and only 2 of those files contain functions that are hit by the unit
tests, the percentage is only calculated for those two files.
We have found our that using a CTestCustom.cmake (with
CTEST_CUSTOM_COVERAGE_EXCLUDE) we can exclude our test source code from
the percentage, but not include additional sources. Is there a solution
to this other than to ensure that at least one function / file is
exercised by the unit tests?
Cheers,
David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20090305/603c43e0/attachment.htm>
More information about the CMake
mailing list