简体   繁体   中英

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

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.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM