Consider reverting breaking change about test configuration #19058
Labels
a:regression
This used to work
@core
Issue owned by GBT Core
in:test-suites
Work related to the JvmTestSuite Plugin
in:testing
Milestone
Expected Behavior
As discussed with @ljacomet, the change to test framework configuration documented here is a major breaking change. It should probably have been a warning instead.
Current Behavior
Upgrading a passing build to Gradle 7.3 breaks. See micronaut-projects/micronaut-gradle-plugin#296
Any build generated by Micronaut in the past which doesn't configure a test framework explicitly is going to fail when upgrading to Gradle 7.3. Basically it means most of the builds generated, via launch.micronaut.io or the CLI tool, since if you say nothing Micronaut will use JUnit Platform..
Context
The problem is that builds which used to pass, even if we understand that they were probably not configured as expected, now break. We have multiple users all reporting the same issue. In addition, it's actually pretty hard to figure out why this is happening. In other words, it would be nice if Gradle captured where the
options
block is configured, so that instead of failing:options
, so that we can trace back to what code was triggered too earlyLater, possibly in 8.0, make this an error.
Steps to Reproduce
See micronaut-projects/micronaut-gradle-plugin#296 for a reproducer and workaround.
The text was updated successfully, but these errors were encountered: