How to specify a run timeout with VSTest.Console?

南笙酒味 提交于 2019-12-09 10:04:58

问题


With MSTest.exe, you can specify a total timeout for a test run by setting the /TestSettings/Execution/Timeouts/@runTimeout attribute in a .testsettings file.

With VSTest.Console.exe, the .testsettings has been deprecated in favor of .runsettings, which apparently has a completely different schema (with, ahem, sparse documentation). I know that I can configure the .runsettings file to use legacy MSTest mode (thereby allowing me to use a .testsettings file), but I would prefer to avoid that if possible.

Is there a way to set a run timeout in the .runsettings file? Or is there a different way to get the same effect?


回答1:


Yes, there is. Please see RFC here: 0011-Test-Session-Timeout.md



来源:https://stackoverflow.com/questions/26663791/how-to-specify-a-run-timeout-with-vstest-console

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!