Hi,
Given someone has added the following:
@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?
Thanks,
Christian
P.S.: I'm cross-posting this from stackoverflow; for some reason I posted it there before being told to come here...
http://stackoverflow.com/questions/23934915/make-cucumber-jvm-run-all-tests-on-continuous-integration-platform-when-kicked-o
Hi,
Given someone has added the following:
@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?
mvn clean test -Dcucumber.options="--tags ~@nonexistantTag"
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 "
...
If so, would
--tags ~@nonexistantTag
achieve what I'm after?
Yes,
mvn clean test -Dcucumber.options="--tags ~@nonexistantTag"
should execute all scenarios (even though @CucumberOptions specified tags = "@myTag")
See also the README.md of the cucumber-java-skeleton project for more examples.
Hi,