1

Given someone has added the following to their RunTests.java:

@Cucumber.Options(
        format   = {"pretty", "html:target/cucumber", "json:target/cucumber.json"},
        tags     = "@myTag",
        features = "src/test/resources/features"  )

Is there a way to make sure all scenarios are executed when running maven via a command line, e.g. on a continuous integration platform, like the following:

mvn clean test -Dcucumber.options="src/test/resources/features --tags @myTest"

Put differently, is there a command line option to force cucumber to "execute all features", e.g. using something like

mvn clean test -Dcucumber.options="src/test/resources/features --tags "

And am I correct in assuming

--tags ~@doNotRunMe

will execute all tags except the one mentioned?

If so, would

--tags ~@nonexistantTag

achieve what I'm after?

1 Answer 1

1

The answer is Yes, as pointed out by Björn in the Cukes Google Group. He also pointed out that Cucumber-jvm supports AND and OR-like "links" for tags, and pointed me to the Cucumber Hooks wiki page, about which I had forgotten.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.