OpenCppCoverage not reporting untouched files

4 days ago 2
ARTICLE AD BOX

I have a Visual Studio solution with this architecture:

core.lib

api.dll (imports core.lib, no actual code)

tests.exe (imports core.lib)

I'm running OpenCppCoverage from the root of the solution with:

C:\Program Files\OpenCppCoverage\OpenCppCoverage.exe" --source core\** --export_type cobertura:coverage_result\coverage.xml -- .\x64\Debug\tests.exe

My tests only cover some of the source code in core.lib , some files are not covered by any tests.

Those untouched files are not present in the report, only files with some coverage (more than 0%) show up.

How can I make it so that all source files show up in the coverage report?

Read Entire Article