I'm having trouble figuring out how to run a single test via maven command line. I can edit the @Cucumber.Options in the test runner class and give it a name or tags parameter. But when I try to do the same using 'mvn test -dCucumber.Options="--name=MyFeature"' this does not work. It'll give an error saying can't find that test "--name=MyFeature". Using just:'mvn test' works and executes all the features. I'd like to be able to run single features and feature by tags via the command line.
Thanks,-- Rules --
1) Please prefix the subject with [Ruby], [JVM] or [JS].
2) Please use interleaved answers http://en.wikipedia.org/wiki/Posting_style#Interleaved_style
3) If you have a question, don't reply to an existing message. Start a new topic instead.
You received this message because you are subscribed to the Google Groups Cukes group. To post to this group, send email to cu...@googlegroups.com. To unsubscribe from this group, send email to cukes+un...@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/cukes?hl=en
I'm having trouble figuring out how to run a single test via maven command line. I can edit the @Cucumber.Options in the test runner class and give it a name or tags parameter. But when I try to do the same using 'mvn test -dCucumber.Options="--name=MyFeature"' this does not work. It'll give an error saying can't find that test "--name=MyFeature". Using just:'mvn test' works and executes all the features. I'd like to be able to run single features and feature by tags via the command line.There was a thread about this in the past week.
I'm having trouble figuring out how to run a single test via maven command line. I can edit the @Cucumber.Options in the test runner class and give it a name or tags parameter. But when I try to do the same using 'mvn test -dCucumber.Options="--name=MyFeature"' this does not work. It'll give an error saying can't find that test "--name=MyFeature". Using just:'mvn test' works and executes all the features. I'd like to be able to run single features and feature by tags via the command line.There was a thread about this in the past week.Aslak
I'm having trouble figuring out how to run a single test via maven command line. I can edit the @Cucumber.Options in the test runner class and give it a name or tags parameter. But when I try to do the same using 'mvn test -dCucumber.Options="--name=MyFeature"' this does not work. It'll give an error saying can't find that test "--name=MyFeature". Using just:'mvn test' works and executes all the features. I'd like to be able to run single features and feature by tags via the command line.There was a thread about this in the past week.AslakThanks,
I'm having trouble figuring out how to run a single test via maven command line. I can edit the @Cucumber.Options in the test runner class and give it a name or tags parameter. But when I try to do the same using 'mvn test -dCucumber.Options="--name=MyFeature"' this does not work. It'll give an error saying can't find that test "--name=MyFeature". Using just:'mvn test' works and executes all the features. I'd like to be able to run single features and feature by tags via the command line.There was a thread about this in the past week.AslakThanks,
Just tried to run it as follows and it worked for me:
mvn clean test -Dcucumber.options="--tags @user"
@userFeature: Set user login...@CucumberOptions(tags = "@user")
Dear all,I have the same question. Anyone can help?
mvn test -Dcucumber.options="--name '<include scenario name here>'"mvn test -Dcucumber.options="classpath:features/login/login.feature:12"mvn test -Dcucumber.options="--tags @my-unique-tag"