serenity-bdd / serenity-cucumber

Cucumber integration for the Serenity BDD Reporting library
Other
78 stars 74 forks source link

trying to set CUCUMBER_OPTIONS in environment but not working for multiple tags #150

Closed markl2 closed 6 years ago

markl2 commented 6 years ago

I can do export CUCUMBER_OPTIONS="--tags @reliable" successfully but: export CUCUMBER_OPTIONS="--tags {@reliable, @unreliable}" gives errors as well as: export CUCUMBER_OPTIONS="--tags @reliable, @unreliable" The error given for the former export is: java.lang.IllegalArgumentException: Not a file or directory: /var/lib/jenkins/workspace/Dashboard-Test-Automation-QA-reliable/unreliable}

BTW, I am logged into my Jenkins server (RHEL 7.4) and running everything from the command line in directory /var/lib/jenkins/workspace/Dashboard-Test-Automation-QA-reliable to troubleshoot this and not using Jenkins.

Any suggestions? If this is the wrong place to post this, please advise. thx, Mark

I am using older versions of "stuff" but I think this might be a general issue. The relevant stuff from my POM is:

UTF-8 1.8 1.8 1.8 4.12 2.20.1 1.6.1 1.6.3 1.5.9 1.6.3 1.6.3 3.6.0 3.6.0 3.4.0 firefox 3.0.6
wakaleo commented 6 years ago

@cliviu?

cliviu commented 6 years ago

hi @markl2 , please try --tags '@reliable or @unreliable' . Here is the docu of the tag expressions, the new style : https://github.com/cucumber/cucumber/tree/master/tag-expressions

cliviu commented 6 years ago

@markl2 ?

wakaleo commented 6 years ago

Closing as the solution has been provided by @cliviu