OpencppCoverage difference with Visual Studio Code coverage

Mar 20 at 4:23 PM
Hi,

I am exploring code coverage tools on Windows, I see OpenCppCoverage as a good one, but also there is a default code coverage option in Visual Studio.what is the differentiator that OpenCppCoverage has over the Visual Studio one.

Also does openCPPCoverage works well with C++ code using SDK like CUDA,OpenMP, OpenCV, has anyone tried it ? any issues.

Please let me know your views.

Thanks and Regards
Deepak
Coordinator
Apr 3 at 11:06 AM
Hello,

I never try the code coverage feature inside Visual Studio because it requires the "Enterprise" edition.

Here are some features of OpenCppCoverage:
  • No need to recompile the code, you just need pdb files and source files.
  • You can have a partial code coverage based on a diff file(It is useful if you want to know the coverage of a specific pull request for example).
  • It works well with Jenkins.
  • You can exclude a line based on a tag.
I did not test the libraries you mention but they should work.
OpenCppCoverage is very easy to use so you should give it a try and see if it fit your needs.

Note: OpenCppCoverage produces a better result in debug mode.

I hope this will help,

OpenCppCoverage
Marked as answer by OpenCppCoverage on 5/16/2017 at 12:39 PM