Skip to content

Stop referring to outdated milestone versions of Maven Surefire/Failsafe in the User Guide #4298

@jean-andre-gauthier

Description

@jean-andre-gauthier

Hi team, I noticed that tests were not executed anymore in older surefire versions (i.e. 2.22.2-3.0.0-M3), when upgrading to 5.12.0-M1.

For surefire 2.22.2 and 3.0.0-M3 we get this warning message, but in 3.0.0-M1 and 3.0.0-M2 the tests are silently ignored:

WARNING: TestEngine with ID 'junit-jupiter' failed to discover tests
org.junit.platform.commons.JUnitException: OutputDirectoryProvider not available; probably due to unaligned versions of the junit-platform-engine and junit-platform-launcher jars on the classpath/module path.

Was this an intentional change / does JUnit 5.12.0 drop support for those surefire versions?

Steps to reproduce

Run ./mvnw clean test in the reproducer. For 5.11.4 the build fails, but for 5.12.0-M1 the build succeeds, because no tests are executed:

reproducer.zip

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions