matrei opened a new pull request, #16103:
URL: https://github.com/apache/grails-core/pull/16103
This pull request updates test configuration across multiple Gradle build
files to use the `TestListener` interface instead of the deprecated test
lifecycle hooks. These changes modernize test logging, improve compatibility
with newer Gradle versions, and ensure consistency in test event handling.
**Test configuration modernization:**
* Replaced all usages of `beforeTest`, `afterTest`, and `afterSuite`
closures with the `addTestListener` API and corresponding closures in the
following files:
* `gradle/hibernate5-test-config.gradle`
[[1]](diffhunk://#diff-d038087ed6543f58711609cda77c7e4bad72c9409f016123599cf30ed41661eaL70-R74)
[[2]](diffhunk://#diff-d038087ed6543f58711609cda77c7e4bad72c9409f016123599cf30ed41661eaR83)
* `gradle/hibernate7-test-config.gradle`
[[1]](diffhunk://#diff-d66378e8e6c7ec4aa5f7b2819c529cc6cc71cc788764c98f9d1575d80321e272L68-R72)
[[2]](diffhunk://#diff-d66378e8e6c7ec4aa5f7b2819c529cc6cc71cc788764c98f9d1575d80321e272R81)
* `gradle/mongodb-forked-test-config.gradle`
* `gradle/mongodb-test-config.gradle`
* `gradle/redis-test-config.gradle`
* `gradle/spring-security-test-config.gradle`
* `gradle/test-config.gradle`
[[1]](diffhunk://#diff-ae427bd33d1d638570fa945ebcd564182a2102280dfb09aa4499c27a12ad0002L92-R97)
[[2]](diffhunk://#diff-ae427bd33d1d638570fa945ebcd564182a2102280dfb09aa4499c27a12ad0002L122-R137)
* `grails-data-neo4j/grails-datastore-gorm-neo4j/build.gradle`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]