可以将构建中的TFS测试结果配置为将忽略或跳过的测试添加到“其他”计数吗? [英] Can the TFS Test Results in the build be configured to add ignored or skipped tests to the 'Other' count?

查看:77
本文介绍了可以将构建中的TFS测试结果配置为将忽略或跳过的测试添加到“其他”计数吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

构建中的TFS测试结果是否可以配置为将忽略或跳过的测试添加到"其他"计数?

解决方案

Hi Tester MSA,


感谢您在此发帖。


您的意思是不在构建的测试页面中显示其他测试或其他任何内容吗?你能否提供一些关于你的问题的详细信息,也许是一些截图。


如果我没有误解你,在测试摘要页面中,它无法删除那些其他类型的测试。因为这些测试已在此构建过程中运行。如果您不希望它们显示,您应该

忽略它们





为您的测试方法添加[Ignore]属性,如果您想忽略它们。

 [TestMethod] 
[忽略]
public void TestMethod1()
{
......
}


关于已经运行的那些构建,请访问TFS网站上的"测试运行"页面以获取详细信息。在此页面中,图表可以排除那些其他类型测试,只保留Passed和Failed。



Can the TFS Test Results in the build be configured to add ignored or skipped tests to the 'Other' count?

解决方案

Hi Tester MSA,

Thank you for posting here.

Do you mean the do not show the Other tests in the Test page of a build or anything else? Could you please give more details about your issue, maybe some screenshots.

If I didn't misunderstand you, in the Test summary page, it couldn't remove those Other type tests. Because those tests already runs in this build process. If you don't want them to show, you should ignore them when the tests run.

Add an [Ignore] attribute for your test method, if you want to ignore them.

[TestMethod]
[Ignore]
public void TestMethod1()
{
        ......
}

About those builds that already runs, please go to the Test Run page on TFS web site for detailed information. In this page, the charts could exclude those Other type tests, just retain Passed and Failed.


这篇关于可以将构建中的TFS测试结果配置为将忽略或跳过的测试添加到“其他”计数吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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