【发布时间】:2017-02-14 13:10:09
【问题描述】:
我有一个批处理文件,其中包含以下面类似形式定义的多个测试。
vstest.console.exe Test.dll /Settings:"test.runsettings" /Tests:"t1,t2,t3,t4,t5"
测试按从 t1 到 t5 的顺序运行。但是,如果任何一项测试失败,我想停止 vstest。这可以使用 vstest.console.exe 吗?
顺便说一句,我的 test.runsettings 的内容是
<?xml version="1.0" encoding="utf-8"?>
<RunSettings>
<MSTest>
<ForcedLegacyMode>true</ForcedLegacyMode>
<KeepExecutorAliveAfterLegacyRun>true</KeepExecutorAliveAfterLegacyRun>
</MSTest>
</RunSettings>
我检查了Documentation for runsettings,似乎没有这个案例的标志/属性。
【问题讨论】:
-
我在 msdn 上为 TFS 构建服务器询问过这个问题。不去。不知道 vstest,虽然。
-
你让我想起了 MSDN。我在msdn上发布了同样的问题,希望他们能得到答案,然后我可以在这里发布官方对此事的看法。我认为实现这一点的标志应该可用。但它不在文档中。
-
不敢相信这是不可能的