如何从tfs构建的测试结果中排除有序测试的名称?

时间:2016-10-20 09:36:51

标签: tfsbuild ordered-test test-results

我有一些带有一些UI测试的有序测试。然后我有一个有序测试,其中包含其他有序测试:

enter image description here

这个有序测试(包含许多其他有序测试)在TFS Build中每晚运行。如果某些UI测试失败,那么测试失败的有序测试的名称将显示在TFS Build的测试结果中:

enter image description here

是否可以使用任何设置从测试结果中排除有序测试的名称?我想在测试结果中看到失败测试的名称。

1 个答案:

答案 0 :(得分:0)

我相信在TFS构建中创建构建定义时,您可以指定是否应该在构建定义的进程选项卡上运行测试。

测试的部分参数是测试源规范值,(在我的TFS中)默认为{ "status": false, "info": "The email field is required." } { "status": false, "info": "The email field is required." } { "status": false, "info": "The email field is required." } { "status": false, "info": "The email field is required." } { "status": false, "info": "The email field is required." } { "status": false, "info": "The email field is required." }

也许如果您将测试放在不同的程序集中,并且不能与过滤器匹配,那么您可以获得所需的测试。

或者,还有一个名为测试用例过滤器的参数,但我不熟悉你可以放在那里过滤测试,但这个名字看起来很有希望。