How do i selectively ignore certain .feature files in my build while using karate framework?

冷暖自知 提交于 2019-12-12 18:18:12

问题


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.


回答1:


Yes, the answer is tags.

Example:

@ignore
Feature: my feature

Scenario:
# blah

And on the command-line:

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


来源:https://stackoverflow.com/questions/48009320/how-do-i-selectively-ignore-certain-feature-files-in-my-build-while-using-karat

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!