Code coverage highlighting is not working (see the attached picture). I have VS 15.9.5 and VGDB 5.4R2 build 2751
The “General Question” part
It seems that I cannot get coverage results on code in a shared object unless I also enable coverage on the unit test project that calls the shared object. Is that how it is intended to work?
It would be nice if you only had to turn coverage on in the projects containing product code. This would avoid the need to filter out results from unit tests. I was able to get results for ONLY the code in the shared object by turning code coverage on in the test project and then explicitly turning it off in EVERY file in the test project (as hinted at in the tutorial https://visualgdb.com/tutorials/profiler/linux/coverage/). So I guess there is a workaround, but it requires developers to have to remember to disable instrumentation for every test file they add to a test project.
Attachments:
You must be
logged in to view attached files.