You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Enhancement]: Add support for JUnit 6.x and aligned JUnit Platform versions #11248
Currently, the junit-jupiter integration in Testcontainers still depends on JUnit Platform 1.x and Jupiter 5.x, creating a scenario where mixing with JUnit 6.x causes runtime failures (e.g., NoClassDefFoundError) due to mismatched versions.
Request
Provide explicit support for JUnit 6.x: Platform 6.x + Jupiter 6.x.
Ensure all Testcontainers test-integration modules align to that version scheme.
Either release a dedicated testcontainers-junit-jupiter-6 variant or upgrade the existing module to JUnit 6 compatibility.
Goal
Allow projects upgrading to JUnit 6.0 to use Testcontainers seamlessly without forcing a fallback to Platform 1.x or Jupiter 5.x.
More info
Currently used Testcontainers version: 1.21.32.0.2
Testcontainers doesn't have a transitive dependency on JUnit and works well with JUnit 6.x. I have a whole repository using spring boot 4.x and JUnit 6. Can you please clarify?
Activity
eddumelendez commentedon Nov 25, 2025
can you share the Testcontainers version you are using, please?
adamklinkosz commentedon Nov 25, 2025
Updated the desc to include the version ->
2.0.2eddumelendez commentedon Nov 25, 2025
Testcontainers doesn't have a transitive dependency on JUnit and works well with JUnit 6.x. I have a whole repository using spring boot 4.x and JUnit 6. Can you please clarify?