使用 TFS vNext (2015) 指定 NUnit 类别 [英] Specify NUnit categories with TFS vNext (2015)

查看:34
本文介绍了使用 TFS vNext (2015) 指定 NUnit 类别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有谁知道如何使用 vNext 构建步骤的运行功能测试"中的测试过滤条件"字段来指定 NUnit 测试适配器要执行的测试类别吗?

例如,当我使用 TestCategory=CatA 设置此字段时,构建失败...

(遵循

我在这里使用运行功能测试"构建步骤

Does anyone know how to use "Test Filter Criteria" field in the "Run Functional Test" of vNext build step, to specify the categories of tests to be executed by NUnit test adapter?

When I set this field with TestCategory=CatA for example, the build fails...

(Following https://www.codit.eu/blog/2015/03/18/continuous-integration-with-javascript-nunit-on-tfsbuild-part-3-of-3-/)

Thanks!

解决方案

Hope this will help someone someday, the right way is to use the keyword "Category" Example:

(Category=CatA&Category!=CatB)|Category=CatC

I use here the "Run Functional Test" build step

这篇关于使用 TFS vNext (2015) 指定 NUnit 类别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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