lewismj / cucumber

Cucumber Test Framework & Plugin for SBT (BDD Testing in Scala)
Other
41 stars 18 forks source link

[Question] How to run a single feature/example #32

Closed tasuki closed 7 years ago

tasuki commented 7 years ago

Hi, is it possible to run a single feature/example without the plugin? In the sbt console, I currently use testOnly *CucumberTestSuite to only run cucumber tests, but would love to have more control!

lewismj commented 7 years ago

I think the plugin you can just do
sbt "cucumber --tags ~@my-tag" For the test framework, I've always specified test options as: testOptions in Test += Tests.Argument(framework,"--plugin","json:/tmp/json") in my build.sbt, I'm not sure if 'testOptions' can be set on the sbt command line. I will take a look, if not, I'll try to come up with a suitable feature.

tasuki commented 7 years ago

Michael, thank you for the fast answer!