How can I add a unit test to a C++ console program in Visual Studio 2012? -
how can add unit test c++ console program in visual studio 2012?
from i've been able gather msdn ms unit test support c++ can't @ all, (which doesn't surprise me ms c++ unit test support shocking).
however in earlier versions of visual studio used able unit test c++ code using visual assist, sadly doesn't support vs2012.
does know of c++ unit test framework sort of ide integration works vs2012?
visual studio support integrated unit testing. need structure program correctly though. way structure solutions have 3 projects.
- a .lib project has source code in it.
- an executable project, linked .lib. calls .lib in main() call
- a test project (exe), linked .lib.
whilst possible use visual studio testing framework, recommend google test. 1 of best things google test google mock. can integration plugin.
Comments
Post a Comment