serenity-bdd / serenity-cucumber4

Other
13 stars 10 forks source link

cucumber.options tags are ignored in serenityCucumberVersion 1.0.22 and cucumberVersion 4.8.0 #15

Closed ilzul closed 4 years ago

ilzul commented 5 years ago

When using Serenity with Cucumber-JVM and adding a tag in the .feature file above the Feature or Scenario definition (e.g. @api:rest), then it is not possible to run that test by itself using gradle.

gradlew clean test -Dcucumber.options="--tags @api:rest"

The issue can be reproduced with serenityCoreVersion = '2.0.89' serenityCucumberVersion = '1.0.22' cucumberVersion = '4.8.0'

cliviu commented 5 years ago

This should be fixed with the next version...

ilzul commented 5 years ago

Thanks a lot ! Looking forward to test that on my test project

s2oBCN commented 4 years ago

When using Serenity with Cucumber-JVM and adding a tag in the .feature file above the Feature or Scenario definition (e.g. @api:rest), then it is not possible to run that test by itself using gradle.

gradlew clean test -Dcucumber.options="--tags @api:rest"

The issue can be reproduced with serenityCoreVersion = '2.0.89' serenityCucumberVersion = '1.0.22' cucumberVersion = '4.8.0'

Also, with the deprecated cucumber.api.CucumberOptions the runner can find the features, but with the new implementation io.cucumber.junit.CucumberOptions no features are found.

wakaleo commented 4 years ago

Should be fixed in 1.0.28

ilzul commented 4 years ago

work like a charm. thanks a lot !