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.
Asked
Active
Viewed 8,233 times
4
-
This helped me in getting the job done :- https://github.com/intuit/karate#cucumber-options – Shriram Jan 05 '18 at 11:53
1 Answers
3
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

Peter Thomas
- 54,465
- 21
- 84
- 248