OpenCppCoverage / OpenCppCoveragePlugin

Official Visual Studio Plugin for OpenCppCoverage
GNU General Public License v3.0
67 stars 28 forks source link

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

Open Haqiverse opened 4 years ago

Haqiverse commented 4 years ago

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

OpenCppCoverage commented 4 years ago

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

Haqiverse commented 4 years ago

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!