In cucumber tests, I want to skip some feature files without changing feature files, such as adding additional tags. Though tags can exclude feature files to run, I can't modify those files. Is there a way to configure in maven pom.xml? Or can I use @CucumberOptions with special features parameters?
Changing feature files will affect other git branches. So I want other way to exclude feature files rather than modifying feature files directly.
One way is to use a Maven plugin to generate a Junit Runner Class for each feature file. Then with maven-failsafe-plugin
we can specify exclusions or inclusions to exclude or include those Junit Runner Classes.