This project is read-only.

Empty Report/Coverage of DLL file?

Sep 1, 2016 at 4:35 PM
Hi. I am trying to get code coverage of a dll file with has a pdb associated with it.

But it looks like the utility only accepts .exe files.

Is there anyway around this?

I believe my reports are coming up empty because of this issue.
(I end up selecting an exe in hopes that it captures the dll, but because I have no pdb for that exe, I'm guessing the report comes up empty.
Sep 3, 2016 at 9:34 PM

I created a console application that calls a class located in another dll. I removed the pdb associated to the executable. I was able to see the coverage of the dll, but of course, not the one of the executable.

Can you try to run OpenCppCoverage without filters (do not use --sources or --modules)?
Does your application run a child process. If yes, please use --cover_children flag.
Is there anything special in your application or dll?

If none of the previous suggestion help, can you send the log created with --verbose flag.

Let me know if you solve your problem,

Sep 4, 2016 at 2:00 AM
Hmm, I think I may have resolved this, though I'm not sure.

Is it required to have Visual Studio installed on the machine in order to generate the report?

Because I have the source files and I am basically trying to run it, and perhaps because pdb files are 'Visual Studio' based, it's not generating the report because VS is missing?
Sep 4, 2016 at 9:44 PM

Visual Studio should not be need to generate the report.
Can you provide the log file, perhaps I can find something?

Marked as answer by OpenCppCoverage on 11/27/2016 at 7:07 AM