Skip to content

[Enhancement]: Add support for JUnit 6.x and aligned JUnit Platform versions #11248

@adamklinkosz

Description

@adamklinkosz

Module

Core

Proposal

With the release of JUnit 6.0, the JUnit team introduced a new versioning scheme:

all modules of JUnit Platform, Jupiter, and Vintage now use the same version number: 6.0.0.

source

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.3 2.0.2

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions