Quantcast
Channel: opencppcoverage Discussions Rss Feed
Viewing all articles
Browse latest Browse all 235

New Post: Include all my cpp files

$
0
0
Hello,

Let's take an example:
  • MyProject.dll is a dynamic library (dll) that contains 10 non template classes in 10 sources files (cpp).
  • MyTestProject.exe links to MyProject.dll and has a single test that cover only one class and so one file.
  • You should see in the coverage of your 10 files (9 of them should have a coverage of 0%).
If this is not the case, something is wrong:
  • in the way you call OpenCppCoverage or,
  • in your linker settings or
  • in OpenCppCoverage.
What do you mean by "Yeah it all works fine".
Is it for "Are you able to put a breakpoint when debugging your unit tests in one of the file that is not reported by OpenCppCoverage"

Can you provide the answers of the previous questions, it is hard for me to help you more without further information.
Here are the previous questions:
  • Did you try to run OpenCppCoverage without any filters on your program compiled in debug mode? Does it solve your problem?
  • Are you able to put a breakpoint when debugging your unit tests in one of the file that is not reported by OpenCppCoverage?
  • Could you provide log file (LastCoverageResults.log) when running OpenCppCoverage in verbose mode (--verbose) and which files are not reported?
Are you able to reproduce your problem on a small toy project? If yes, can you send it to me so that I will better understand your problem?

Please let me know if you solve your problem,

OpenCppCoverage

Viewing all articles
Browse latest Browse all 235

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>