I have a case for a feature file where we have to test emails and we can't. So we decided to mark the whole feature file as @manualTesting
so that people know that it has to be manually tested.
I know how to create an annotation to be executed before or after but is there a way that when we mark some feature file with @manualTesting
it never gets executed.
Note:- I don't want to add any @excluded
or @disabled
annotation.
You could use the "tags" attribute of the CucumberOptions annotation to exclude that tag from being executed:
@CucumberOptions(..., tags = {"not @manualTesting", ...},...)