使用空手道框架时,如何在构建中有选择地忽略某些.feature文件? [英] How do i selectively ignore certain .feature files in my build while using karate framework?

查看:60
本文介绍了使用空手道框架时,如何在构建中有选择地忽略某些.feature文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对于使用空手道框架的集成测试套件,我必须忽略某些.feature测试文件.有什么方法可以选择性地排除某些文件.

I have to ignore certain .feature test files for my integration test suite using karate framework. Is there any way in which i can selectively exclude certain files.

推荐答案

是的,答案是标签.

示例:

@ignore
Feature: my feature

Scenario:
# blah

在命令行上:

mvn test -Dcucumber.options="--tags ~@ignore" -Dtest=MyIntegrationSuiteRunner

这篇关于使用空手道框架时,如何在构建中有选择地忽略某些.feature文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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