TeamCity + MSTest - Run only failed tests?

旧城冷巷雨未停 提交于 2019-12-07 07:27:33

问题


Is there a way to run only failed tests from a previous test run in TeamCity?

Even better, is there a way to run only selected tests in some way? Like if we want to run only certain test classes.

Is there another mechanism we can accomplish this with? Maybe passing some kind of configuration file to MSTest on subsequent test run?

The reason I ask this, is we have employees that do not use Visual Studio, but they still need to run certain tests to see what is failing.


回答1:


You can group those tests in a category. http://msdn.microsoft.com/en-us/library/dd286683.aspx

Use the "Additional commandline parameters" in the MsTest Build Step to run only the test from your category.



来源:https://stackoverflow.com/questions/5898853/teamcity-mstest-run-only-failed-tests

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