Include all my cpp files

May 13 at 2:53 PM
Any way to have the report show any source files not covered by a test? Seems like if my test project is missing test for a file, that file is not included in the report.
May 15 at 2:07 PM
Looked into this some more and discovered that the linker for the test project was excluding source that it didn't need to link. I updated the settings but the report still does not contain any files that I do not touch with a unit test.
Coordinator
May 16 at 7:35 PM
Hello,

First, you can try to run OpenCppCoverage without filters (no --sources or --modules).
You can also try to run your program in debug mode to avoid inlining or optimization problems.

OpenCppCoverage creates a report for all the files available inside the pdb (except if you use --sources).

This command shows files available inside a pdb:
"C:\Program Files (x86)\Windows Kits\10\Debuggers\x86\dbh.exe" YOUR_FILE.pdb src
where YOUR_FILE.pdb is the file for which you want to list sources.

Note: If you are not able to put a breakpoint in the missing file when debugging then OpenCppCoverage cannot cover it too.

I hope this will help,

OpenCppCoverage