Using gcovr to display null coverage

we are trying to use gcovr to generate a coverage report for our C ++ project in Jenkins. I managed to get it to work, but I ran into one problem. gcovr does not show statistics for files with zero coverage — they only have .gcno files, .gcda files are not created, and gcovr does not show them in the results.

So, I have 80% coverage for the whole project, but only 2 tests were written, and this is actually 80% coverage only for the source files involved in the tests. For a large project, of course, it makes no sense to use such statistics.

I found https://software.sandia.gov/trac/fast/changeset/2766 this set of changes as a solution for this ticket https://software.sandia.gov/trac/fast/ticket/3887 , but it looks like it does not work.

Did I miss something?

ps I am using gcovr 3.1-preerelease

+4
source share

All Articles