opencppcoverage for VS unit test framework?

Jul 17, 2016 at 8:47 PM
The MS VS unit testing framework generates a DLL, which is then invoked by vstest.executionengine.exe. Any clues how to use opencppcoverage for such a project?
Coordinator
Jul 19, 2016 at 7:57 PM
Hello,

See this discussion to have an example of command line to run OpenCppCoverage with VS unit test framework.

Unfortunately, we discovered a bug and you will probably have an empty coverage (You can read the last message of this discussion for more information). I am working on the fix and plan to create a new release in a few days.
I will add a message to this discussion.

OpenCppCoverage
Jul 22, 2016 at 9:46 AM
Coproc, actually you might want to try https://github.com/atlaste/VSOpenCPPCoverage . It automatically handles all the command line stuff from vstest, which is a pain imho. It doesn't solve the bug that is mentioned here though.
Coordinator
Jul 27, 2016 at 9:49 PM
Hello,

OpenCppCoverage 0.9.5.3 should solve the problem with VS unit test framework.
You have an example of how to run VS unit test framework from command line here.

Let me know if it solve or not your problem,

OpenCppCoverage
Aug 12, 2016 at 4:51 PM
Hello,

running opencppcoverage from command line as shown in the linked discussion works now. Great job.

Wolfgang



On Wed 27/07/16 23:49 , "OpenCppCoverage" [email removed] sent:

From: OpenCppCoverage

Hello,

OpenCppCoverage 0.9.5.3 should solve the problem with VS unit test framework.
You have an example of how to run VS unit test framework from command line here.

Let me know if it solve or not your problem,

OpenCppCoverage
Marked as answer by OpenCppCoverage on 8/19/2016 at 7:30 AM