I have a question about the scope of unit testing code when using C ++ / CLI.
I managed to get code coverage that works in the visual studio IDE, as well as from the command line using vsinstrand vsperfmon. However, the problem I am facing now is that code coverage includes functions from the library std, boostand other libraries that I do not want to receive to cover the code.
I tried the parameter /EXCLUDE, but it does not work at all.
I have the following two files .rsp:
/coverage
/exclude:std::*
/exclude:boost::*
MyExe.exe
/coverage
/exclude:std::*
/exclude:boost::*
UnitTestsDll.dll
I use the following command for the tool .exeand unit test dll:
vsinstr @foo.rsp
And then launch the performance monitor:
Start vsperfmon -coverage -output:mytestrun.coverage
IDE , , vsperfcmd.
mytestrun.coverage visual studio, std .
- ?
, - .
EDIT:
, :
vsinstr -coverage "UnitTestsDll.dll" /: UnitTestsNameSpace. *
, :: ., unit test . , , , . , , /EXCLUDE . ::.