TeamCity + MSTest-仅运行失败的测试? [英] TeamCity + MSTest - Run only failed tests?

查看:103
本文介绍了TeamCity + MSTest-仅运行失败的测试?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有一种方法可以仅运行TeamCity先前测试中失败的测试?

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.

还有另一种机制可以用来完成此任务吗?也许在以后的测试运行中将某种配置文件传递给MSTest?

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

之所以这样问,是因为我们有一些不使用Visual Studio的员工,但是他们仍然需要运行某些测试才能查看失败的原因.

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.

推荐答案

您可以将这些测试归为一类. http://msdn.microsoft.com/en-us/library/dd286683.aspx

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

在MsTest构建步骤中使用其他命令行参数"仅运行您类别中的测试.

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

这篇关于TeamCity + MSTest-仅运行失败的测试?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆