c# – 没有执行msTest的测试

前端之家收集整理的这篇文章主要介绍了c# – 没有执行msTest的测试前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我正在尝试使用MSTest在命令行上运行.NET单元测试

我的命令是@H_403_3@

"C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\MSTest.exe" /testcontainer:"full path of dll" /resultsfile:TestResults.trx

运行时返回@H_403_3@

Starting execution…
No tests to execute.@H_403_3@

单元测试在VS 2012 IDE中运行得非常好.@H_403_3@

我需要做些什么才能让它在cmd线上运行?@H_403_3@

解决方法

试试这个:
"C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\MSTest.exe" /testcontainer:full path of dll /resultsfile:TestResults.trx

也就是说,在你的dll路径周围没有“”@H_403_3@

猜你在找的C#相关文章