.net - 从 Windows 命令行运行 MSTests

标签 .net visual-studio-2010 visual-studio unit-testing mstest

我有 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/

相关文章:

.net - 检查函数是否在递归函数调用中

.net - WCF - 基于消息的安全和 SSL 加速器

c++ - Visual Studio C++ 2010 如何将图标添加到控制台应用程序

git - Visual Studio 2015 和 Git 错误 : open ("somefile.VC.opendb"): Permission denied fatal: Unable to process path myfile. VC.opendb

visual-studio - 最小的工作 IVsTextViewCreationListener 实现是什么?

visual-studio - 更改 VS2017 默认新建项目位置

.net - .NET 中的 "word-aligned"是什么?

c# - .NET 内存大小

C++ 模板 : Getting wrong results (output) with MInGW

c# - 识别 C++/CLI 项目中有问题的依赖项