Cucumber JUnit 4 @RunWith(Cucumber.class) to JUnit Platform @Suite
MSALReplaces the Cucumber JUnit 4 runner with a JUnit Platform @Suite that runs the Cucumber engine. The @CucumberOptions become @ConfigurationParameter annotations, and the features become @SelectClasspathResource selectors where they are on the classpath. The JUnit 4 runner looks for glue in the package of the annotated class by default, and the Cucumber engine in the whole classpath, so that package becomes the explicit glue when none is configured. Class-level setup and teardown methods become @BeforeSuite and @AfterSuite methods, as a @Suite does not run @BeforeClass or @BeforeAll. A class that runs with a subclass of the runner, that inherits @CucumberOptions, class-level setup or teardown or a class rule, or that has an option that cannot be carried over, such as one that refers to a constant, keeps the JUnit 4 runner, with a comment explaining why.
org. openrewrite. cucumber. jvm. CucumberRunWithToSuitemod run . --recipe= org. openrewrite. cucumber. jvm. CucumberRunWithToSuiteInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.