OpenCppCoveragePlugin icon indicating copy to clipboard operation
OpenCppCoveragePlugin copied to clipboard

module matches no selected pattern (Visual Studio 2017 & gtest)

Open Haqiverse opened this issue 5 years ago • 2 comments

I get no code coverage results.

verbose info seems to say that my project (module?) is not used.

But it also builds the tests?!

codecov_log.txt

Haqiverse avatar Feb 26 '20 13:02 Haqiverse

Hi,

You have no coverage because you run C:\VCS\Leonardo\FBG_Steuerung_Kondensor_SF_FF_Observer\Condenser_Control\Solution\Debug\SVC_LIGHT_Tests.exe whereas the selected module is P:\Leonardo\FBG_Steuerung_Kondensor_SF_FF_Observer\Condenser_Control\Solution\Debug\SVC_LIGHT_Tests.exe (P: VS C:\VCS)

Does drive P: map to C:\VCS? If yes, Network path special considerations can help. Rebuilding your application and running the coverage computation should work. If not, can you explain how you setup P: so that I can investigate?

You can also add C:\VCS\Leonardo\FBG_Steuerung_Kondensor_SF_FF_Observer in selected module and selected source in Filter tab.

I hope it helps,

OpenCppCoverage

OpenCppCoverage avatar Feb 27 '20 21:02 OpenCppCoverage

OK, you're right, there is this mapping.

When opening solution von C:\VCS and build it the plugin is working. That actually is enough for me.

Thx!

Haqiverse avatar Mar 02 '20 07:03 Haqiverse