C ++ testing with VS test professional

Does anyone know if I can test my own code in VS Test 2010?

+3
source share
3 answers

Like VS2010, native C ++ testing is not directly supported by Visual Studio. See MSDN in particular:

You cannot have unit test projects that use unmanaged C ++.

You can still do your own C ++ testing with Visual Studio, but it will not be as integrated as other VS functions. See this SO answer for a few basic testing modules and libraries. I have not used any of them, so I can not give any guidance.

+2
source

I would bite a bullet, load Boost and build a test suite. Once you enter it, it is as simple as the VS tests.

+1
source
0

Source: https://habr.com/ru/post/1768307/


All Articles