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

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Done
    • Major
    • 7.35.0.Final
    • None
    • None
    • None
    • 8
    • NEW
    • 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.

      Attachments

        Issue Links

          Activity

            People

              rsynek@redhat.com Radovan Synek
              gdesmet@redhat.com Geoffrey De Smet (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: