Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-20746

Migrate the smoke tests from JUnit 4 to JUnit 5

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major Major
    • 37.0.0.Final
    • None
    • Test Suite
    • None

      Using the OpenRewrite Arquillian recipe, we can migrate the testsuite/integration/smoke tests from JUnit 4 to JUnit 5.

      Example configuration which can be removed after the migration:

      <plugin>
          <groupId>org.openrewrite.maven</groupId>
          <artifactId>rewrite-maven-plugin</artifactId>
          <version>6.11.0</version>
          <configuration>
              <activeRecipes>
                  <recipe>org.openrewrite.java.testing.junit5.JUnit4to5Migration</recipe>
                  <recipe>org.openrewrite.java.testing.junit5.CleanupAssertions</recipe>
                  <recipe>org.openrewrite.java.testing.cleanup.AssertLiteralBooleanToFailRecipe</recipe>
                  <recipe>org.openrewrite.java.testing.junit5.AddParameterizedTestAnnotation</recipe>
                  <recipe>org.openrewrite.java.testing.junit5.RemoveTryCatchFailBlocks</recipe>
                  <recipe>org.openrewrite.java.testing.junit5.LifecycleNonPrivate</recipe>
                  <recipe>org.openrewrite.java.testing.junit5.AssertThrowsOnLastStatement</recipe>
                  <recipe>org.openrewrite.java.testing.arquillian.ArquillianJUnit4ToArquillianJUnit5</recipe>
              </activeRecipes>
          </configuration>
          <dependencies>
              <dependency>
                  <groupId>org.openrewrite.recipe</groupId>
                  <artifactId>rewrite-testing-frameworks</artifactId>
                  <version>3.10.0</version>
              </dependency>
          </dependencies>
      </plugin>
      

              jperkins-rhn James Perkins
              jperkins-rhn James Perkins
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: