fabianlinz / serenity-junit5

JUnit5 integration for Serenity BDD
Apache License 2.0
6 stars 11 forks source link

Support for @RunWith(net.serenitybdd.cucumber.CucumberWithSerenity.class) #28

Closed mikethecalamity closed 3 years ago

mikethecalamity commented 3 years ago

Is it possible for you to add an annotation for replacing @RunWith(net.serenitybdd.cucumber.CucumberWithSerenity.class)? Or is that already supported by @SerenityTest?

fabianlinz commented 3 years ago

I guess in theory it would be possible (although being quite some effort). But such an implementation could not make use of the build in support for running Cucumber on Junit5 Platform. This project is extending JUnit5 Jupiter to integrate Serenity. The Cucumber team decided not to extend JUnit5 Jupiter and instead implemented a custom engine. So from my perspective adding support for Cucumber here would be a dead end in the long run and not worth the effort.

see also https://github.com/fabianlinz/serenity-junit5/issues/29#issuecomment-908700828