OpenCcpCoverage cannot find pdb files in Visual Studios 2015

Oct 12, 2016 at 9:27 PM
I'm trying to know the coverage of a cpp project, but i keep having a html exported with coverage of 0%, with
OpenCppCoverage.exe --sources "C:/WorkSpace/project" --excluded_sources "C:/Worksapce/project/libs" --quiet --cover_children -- "C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\CommonExtensions\Microsoft\TestWindow\vstest.console.exe" dTests.dll /Platform:X64 
But if I select the particular tests, I get the correct coverage, with
 OpenCppCoverage.exe --sources "C:/WorkSpace/project" --excluded_sources "C:/Worksapce/project/libs" --quiet --cover_children -- "C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\CommonExtensions\Microsoft\TestWindow\vstest.console.exe" dTests.dll /Platform:X64 /Tests:"TestMethod1,TestMethod2"
Here are some references:

VSTest.Console [https://msdn.microsoft.com/es-es/library/jj155800.aspx]

VSTest.Console, additional configuration [https://blogs.msdn.microsoft.com/vikramagrawal/2012/07/23/running-selective-unit-tests-in-vs-2012-rc-using-testcasefilter/]

OpenCppCoverage Documentation [https://opencppcoverage.codeplex.com/documentation]

So, I think it could be some kind of trouble with the way in that OpenCppCoverage look for the methods.. Any idea?
Coordinator
Oct 17, 2016 at 11:16 AM
Hello,

I already successfully run tests for a basic project with vstest.console.exe and without "/Tests".
Can you try to comment your tests and check if one of them creates the issue?

I noticed you used --quiet flag. Can you replace it by --verbose and send me the log file?

I hope this will help,

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