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

New Post: OpenCPPCover with native C++ test

$
0
0
Hi,

I'm attempting to get OpenCPPCover to work with a native C++ test using Visual Studio Community 2015. Layout of the application:
  • Engine.lib (static library project)
  • UnitTests.dll (native C++ unit test project)
I'm attempting to run the unit tests using:

C:\Projects\Engine\x64\Debug>opencppcoverage --continue_after_cpp_exception --cover_children --modules C:\Projects\Engine --sources C:\Projects\Engine -- "C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\CommonExtensions\Microsoft\TestWindow\vstest.console.exe" /Platform:x64 UnitTests.dll

The results:
  • Unit tests execute fine;
  • The report outlines the correct files;
  • Coverage is not measured. Every file gets 0% covered, 100% uncovered (even though I know that's not correct).
Omitting 'sources' and 'modules' command line options don't change the results. For the relevant DLL's, I see only information messages in the output ([...] is selected because it matches selected pattern: *).

The DLL is compiled as x64 DLL and I'm using version 0.9.5.2 (x64).

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>