cypress-cucumber-preprocessor icon indicating copy to clipboard operation
cypress-cucumber-preprocessor copied to clipboard

Ability to ignore the feature file that does not have the tag to run?

Open smithabethi opened this issue 7 years ago • 2 comments

I have feature files: a.feature @smoketest scenario

b.feature @regtest

c.feature @smoketest

Now when i pass tag as @smoktest (cypress run --env tags=@smoketest) it should just pick a.feature and c.feature as b.feature doesnt have @smoketest tag. But cypress still opens up browser for b.feature file and closes. Can we ignore feature files which does not have tag.

smithabethi avatar May 03 '19 19:05 smithabethi

That would be preferable, yes. Currently not supported. I'd be happy to take a PR.

lgandecki avatar May 13 '19 08:05 lgandecki

We've added a new wrapper that allows this, please take a look here: https://github.com/TheBrainFamily/cypress-cucumber-preprocessor#tagging-tests

and at the example provided in that section.

Thanks!

lgandecki avatar May 18 '19 12:05 lgandecki