我有 5 个解决方案都使用 MSTest,我想在根文件夹中有一个 cmd 文件来运行所有测试
所以我想从命令行调用 MsTests runner
\Solution1\Tests\Debug\Test.dll
...
\Solution5\Tests\Debug\Test.dll
有人知道怎么做吗?
最佳答案
这在 MSDN 上有详细说明:How to: Run Automated Tests from the Command Line Using MSTest
基本上,你可以这样做:
MSTest /testcontainer:\Solution1\Tests\Debug\Test.dll
关于.net - 从 Windows 命令行运行 MSTests,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12304494/