Overview
Since JUnit 6.0 M1 has been released, we should start running our test suite using JUnit 6 for the following reasons.
- We want to ensure that our own test suite works with JUnit 6 in Gradle and within IDEs.
- We want to ensure that the
SpringExtensionand related JUnit support inspring-testworks properly with JUnit 6.
Related Issues
- https://github.com/junit-team/junit-framework/issues/4698
- https://github.com/junit-team/junit-framework/pull/4760
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
Comment From: sbrannen
We are now successfully building against JUnit 6.0 RC3 in my junit6 feature branch: https://github.com/sbrannen/spring-framework/commit/01ae92ef4527ab3ca03e7382990eb562646cd0a2
Comment From: silviuburceadev
Meanwhile JUnit 6.0 reached GA on Sept 30th, just in time to be part of SB 4.0/SF 7.0.
Comment From: sbrannen
Meanwhile JUnit 6.0 reached GA on Sept 30th, just in time to be part of SB 4.0/SF 7.0.
Indeed, and that's not coincidental. 😉