Uploaded image for project: 'OptaPlanner'
  1. OptaPlanner
  2. PLANNER-1192

Switch all of KIE from JUnit 4 runner in surefire to JUnit 5 with vintage runner

    Details

    • Type: Enhancement
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 7.29.0.Final
    • Component/s: None
    • Labels:
      None
    • Story Points:
      8
    • Docs QE Status:
      NEW
    • QE Status:
      NEW

      Description

      JUnit 5 vintage is a way to run JUnit 4 code with the JUnit 5 runner.
      This is the first step in the migration from JUnit 4 to JUnit 5 of PLANNER-1003.

      Requirements/pointers:

      • Go to youtube and look at a good "devoxx junit 5" presentation from november 2017 or later.
      • First build all of KIE and run all tests. This will take hours.
      • Write down how long it took to run all tests (ask jhrcek how to get that info easily - it's not the build time as that includes maven snapshot downloads)
        • if you do end up using the build time, build twice and measure the time when doing a "no snapshot update" build.
      • in kie-parent, change the junit dependencies and the maven surefire plugin and maven failsafe plugin so that it uses the JUnit 5 runner and so that it adds the junit vintage dependency instead of the junit:junit:4 dependencies.
      • Go through all projects and look for specific usages of <artifactId>junit< or assembly references of "junit:junit"
      • Build all of KIE and run all tests. It should all work.
      • Report the difference in test time here (or in "no snapshot update" build time)
      • check if the coverage is the same.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  rsynek Radovan Synek
                  Reporter:
                  ge0ffrey Geoffrey De Smet
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated: