Powershell运行具有多个测试的MSTest.exe-如何仅输出失败的测试?

时间:2018-11-15 10:36:14

标签: .net powershell testing automated-tests mstest

我有一个要使用MSTest.exe运行的所有测试字符串,并且仅在出现错误,失败的测试甚至警告时才输出。

Powershell脚本的一部分(...代表着更多/testcontainer:Test....dll)。

# sb is a string builder
$sb = "C:\...\MSTest.exe" /testcontainer:Test....dll ...  /testcontainer:Test...dll 

cmd.exe /c $sb.ToString()

当前它输出所有内容(例如,很多“测试通过”-我不需要看到)。

我尝试查看MSTest command line options docs,但找不到任何内容。

我怎么只输出重要的东西?

编辑:如果该功能存在,我愿意更改测试环境。

0 个答案:

没有答案
相关问题