My c++ unit tests use gtest framework so every test is a separate executable. I'm running the CodeCoverage.exe tool to get the raw coverage data of each executable run. When I open the results in Visual Studio, each executable run appears in a separate branch and the results can't be merged together.
Is there any way to make this work?
One thing I've tried is to specify /session:uniq
in the command line for both runs but that didn't have any effect.
Does it help you to capture via vsperfcmd.exe?
/profile
flag specified to the linker vsinstr.exe gtest.exe /COVERAGE
vsperfmon.exe /COVERAGE /OUTPUT:gtest.coverage
vsperfcmd.exe -shutdown
OK, this should have been a comment, but I don't have the permissions yet. You can run all your unit tests with the macro: RUN_ALL_TESTS();
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.