Introduce support for ordering test classes#2488
Introduce support for ordering test classes#2488ledoyen wants to merge 1 commit intojunit-team:mainfrom
Conversation
2fd7e1a to
5dcc10d
Compare
Codecov Report
@@ Coverage Diff @@
## main #2488 +/- ##
============================================
- Coverage 90.56% 90.53% -0.03%
- Complexity 4683 4708 +25
============================================
Files 407 413 +6
Lines 11568 11646 +78
Branches 923 924 +1
============================================
+ Hits 10476 10544 +68
- Misses 814 824 +10
Partials 278 278
Continue to review full report at Codecov.
|
28935c0 to
d67ac5e
Compare
38e2595 to
baae4bd
Compare
06c0760 to
4b8c2fc
Compare
86c770e to
c4a4450
Compare
|
Thanks for reviewing this so quickly. Let me know if that is ok so I can squash commits. Build on JDK16 & 17 was failing, so I rebased the branch on main, but the issue is still there.
FYI: Upgrading to mockito 3.6.28 did not fix the issue, but maybe some other library is getting byte-buddy and I am not confortable enough with Gradle to display the test dependency tree, maybe you can see something with the build scan ? |
489509d to
c4a4450
Compare
|
The breakage is most likely unrelated to the changes in this branch. I've upgrade the versions of JDK 16 and 17 in junit-team/build-env@2a4a8a5. |
|
Mockito 3.6.48 also doesn't solve the issue: https://ge.junit.org/s/7nva27dj6tilo/dependencies?dependencies=mockito&expandAll |
|
I reported an issue for Mockito: mockito/mockito#2156 |
|
I've reverted back to the working versions of JDK 16 and 17 for now. |
c4a4450 to
12e2483
Compare
|
Just for my knowledge, do you use some extra tool that is not (yet ?) scripted in CI builds to check on line lengths or is it a manual verification ? |
We check line lengths manually in documentation (i.e., Asciidoc and Javadoc) and build scripts. For Java code, we use Spotless. |
|
@ledoyen, if you have a Twitter account, I'd be grateful if you could share it with me (either here or on Twitter: |
|
@sbrannen you can find me on Twitter |
|
Thanks, both of you! 🎉 |
Here's why I asked: https://twitter.com/sam_brannen/status/1355131508101705734 |
|
@sbrannen this MR is causing the Cross-Version / OpenJDK 17 step to fail for #2416 I think the CI might be leaky. |
|
Thanks for reporting, I'm on it. |
|
Cheers! |
PR junit-team#2488 introduced support for ordering top-level test classes but did not provide support for ordering @nested test classes. This commit adds support for ordering @nested test classes as well. Closes: junit-team#2699
PR junit-team#2488 introduced support for ordering top-level test classes but did not provide support for ordering @nested test classes. This commit adds support for ordering @nested test classes as well. Closes: junit-team#2699
PR junit-team#2488 introduced support for ordering top-level test classes but did not provide support for ordering @nested test classes. This commit adds support for ordering @nested test classes. See: junit-team#2699
This commit introduces support for ordering test classes analogous to the existing support for ordering test methods. Specifically, this commit introduces a new ClassOrderer API and related ClassDescriptor and ClassOrdererContext types. JUnit Jupiter provides the following built-in implementations of the new ClassOrderer API. - ClassOrderer.ClassName - ClassOrderer.DisplayName - ClassOrderer.OrderAnnotation - ClassOrderer.Random The default ClassOrderer implementation can be configured globally via the configuration parameter: junit.jupiter.testclass.order.default See the Javadoc and User Guide for details. Issue: junit-team#1948 Closes: junit-team#2488
PR junit-team#2488 introduced support for ordering top-level test classes but did not provide support for ordering @nested test classes. This commit adds support for ordering @nested test classes. See: junit-team#2699
Issue: #1948
Overview
Introduce support for class ordering through the addition of a new configuration parameter:
junit.jupiter.testclass.order.defaultaccepting a fully-qualified class-name implementing the newly introducedorg.junit.jupiter.api.ClassOrdererinterfaceI hereby agree to the terms of the JUnit Contributor License Agreement.
Definition of Done
@APIannotations