Skip to content

[Build] Replace deprecated Gradle test listener creation - #16103

Open
matrei wants to merge 1 commit into
8.0.xfrom
refactor-depr-gradle-test-listeners
Open

[Build] Replace deprecated Gradle test listener creation#16103
matrei wants to merge 1 commit into
8.0.xfrom
refactor-depr-gradle-test-listeners

Conversation

@matrei

@matrei matrei commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

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] [2]
    • gradle/hibernate7-test-config.gradle [1] [2]
    • 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] [2]
    • grails-data-neo4j/grails-datastore-gorm-neo4j/build.gradle

@codecov

codecov Bot commented Aug 6, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 52.3556%. Comparing base (3de06ee) to head (15c93f2).

Additional details and impacted files

Impacted file tree graph

@@                Coverage Diff                 @@
##                8.0.x     #16103        +/-   ##
==================================================
+ Coverage     52.3410%   52.3556%   +0.0145%     
- Complexity      18293      18300         +7     
==================================================
  Files            2036       2036                
  Lines           96347      96347                
  Branches        16829      16829                
==================================================
+ Hits            50429      50443        +14     
+ Misses          38493      38482        -11     
+ Partials         7425       7422         -3     

see 4 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@testlens-app

testlens-app Bot commented Aug 6, 2026

Copy link
Copy Markdown

✅ All tests passed ✅

🏷️ Commit: 15c93f2
▶️ Tests: 46933 executed
⚪️ Checks: 60/60 completed


Learn more about TestLens at testlens.app.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

2 participants