Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue in '--tags' parameter work logic #97

Open
ashkliarovjr opened this issue Dec 14, 2016 · 1 comment
Open

Issue in '--tags' parameter work logic #97

ashkliarovjr opened this issue Dec 14, 2016 · 1 comment

Comments

@ashkliarovjr
Copy link

ashkliarovjr commented Dec 14, 2016

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, like
tags: '~@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?

@caseygoodhew
Copy link
Contributor

caseygoodhew commented May 5, 2017

This is a known (but ignored) issue in cucumberjs, not in this module (cucumber/cucumber-js#301)

Suggested work around - use the expanded syntax in https://docs.cucumber.io/tag-expressions/

tags: ['not @A or not @b']

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants