Overview

Since JUnit 6.0 M1 has been released, we should start running our test suite using JUnit 6 for the following reasons.

  1. We want to ensure that our own test suite works with JUnit 6 in Gradle and within IDEs.
  2. We want to ensure that the SpringExtension and related JUnit support in spring-test works properly with JUnit 6.

Related Issues

  • https://github.com/junit-team/junit-framework/issues/4698

Comment From: sbrannen

Current work on this effort can be viewed in the following feature branch.

https://github.com/spring-projects/spring-framework/compare/main...sbrannen:spring-framework:junit6

On a positive note, the build in that branch is green! ✅

Comment From: sbrannen

We are now successfully building against JUnit 6.0 RC1: https://github.com/sbrannen/spring-framework/commit/8d11bced42aeabc74a83ee97c3b1f5bfbff630f7