Running mstest from command line against Visual Studio 2012 native C++ tests

风格不统一 提交于 2019-11-28 19:13:49
Windelinckx

After a lot of searching, I finally discovered a very hidden msdn documentation page here which states the compatibility of mstest with different test project types. And it turns out the mstest is not compatible with native unit tests (nice of msdn to document this in an easy to find location). Instead you need to use the visual studio test running (vstest.console.exe) instead of msbuild for native unit test projects.

for example

vstest.console.exe /Platform:x64 PathToTestProject\x64\Release\testproject.dll
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!