是否可以指定哪些测试可供选择? [英] Is it possible to specify which tests to choose from?

查看:173
本文介绍了是否可以指定哪些测试可供选择?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有一个测试的大量。我们想infinitest只对已列入的.xml文件(即一个TestNG的套件)的测试之间进行选择。

We have a vast amount of tests. We would like infinitest only to choose between tests that have been included in an .xml-file (i.e. a TestNG suite).

我们不希望把注释组= {shouldbetested} 在每一个测试用例,而是养活我们的.xml文件到infinitest的信息。

We do not want to put the annotation groups = { "shouldbetested" } in every testcase but rather feed the info from our .xml file into infinitest.

这可能吗?

这是另一种工具,它可以做到这一点我们呢?

Is it another tool that could do that for us?

推荐答案

您可以使用常规的前presstion为否跳过某些测试:

you can use a regular expresstion to "not" skip a certain test:

(?!。* YourTest)

(?!.*YourTest)

这篇关于是否可以指定哪些测试可供选择?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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