Open ashkliarovjr opened 7 years ago
This is a known (but ignored) issue in cucumberjs, not in this module (https://github.com/cucumber/cucumber-js/issues/301)
Suggested work around - use the expanded syntax in https://docs.cucumber.io/tag-expressions/
tags: ['not @A or not @B']
Hi, we're currently using your library in our project and now we're facing an issue with '--tags' parameter. We're in a situation when we need to exclude features marked with tag A OR tag B.
According to your spec, --tags parameter takes String or Array as a value, and in case we need OR condition in expression, we got to use String version and write down tags separated with comma.
So our tag expression looks like
--tags='~@A,~@B'
, but for some reason during the tests run it excludes only features tagged with B. We also tried to hardcode this in cucumberjs configuration, liketags: '~@A, ~@B'
and it works just the same.However, I got to tell that 'Array approach' works fine. Is it some kind of a bug or we're doing something wrong?