Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #3179 : Add module for Java 21 tests. #3180

Merged
merged 1 commit into from Nov 27, 2023

Conversation

LeMikaelF
Copy link
Contributor

This PR adds a Java 21 module to be used for testing.

The current version of Gradle (8.4) doesn't yet support running on Java 21, but it does support compiling and testing using Java 21 through the use of toolchains (source). 8.5 will support running Java 21 (source), so the toolchain block can be removed then.

The test source directory is currently empty, apart from a .gitkeep file, but as soon as this PR is merged, it can be used for the tests from #3173 and #3167.

There are no tests yet, but I did test the module by adding my test from #3173 (see top of that PR's description). The tests are ignored when running using Java 11, and correctly fail/pass when using Java 21.

@codecov-commenter
Copy link

codecov-commenter commented Nov 27, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (f522f49) 85.50% compared to head (44e2040) 85.50%.
Report is 8 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##               main    #3180   +/-   ##
=========================================
  Coverage     85.50%   85.50%           
  Complexity     2914     2914           
=========================================
  Files           334      334           
  Lines          8864     8864           
  Branches       1097     1097           
=========================================
  Hits           7579     7579           
  Misses          995      995           
  Partials        290      290           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@LeMikaelF
Copy link
Contributor Author

Looks like the CI is flaky...

@TimvdLippe TimvdLippe merged commit a0cc22d into mockito:main Nov 27, 2023
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants