我有一个批处理文件,其中包含以下面类似形式定义的多个测试。
vstest.console.exe Test.dll /Settings:"test.runsettings" /Tests:"t1,t2,t3,t4,t5"
Run Code Online (Sandbox Code Playgroud)
测试按从 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>
Run Code Online (Sandbox Code Playgroud)
我已经检查了runsettings 的文档,似乎这种情况没有标志/属性。