You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
holly-cummins
changed the title
Support JUnit default classloaders by default in profile aware class orderer
Support JUnit @Order annotation for classes by default in profile aware class orderer
Dec 8, 2024
Closing, because I've just checked the docs, and @Order is not yet a default for JUnit classes:
For example, for the @order annotation to be honored on test classes, you should configure the ClassOrderer.OrderAnnotation class orderer using the configuration parameter with the corresponding fully qualified class name (e.g., in src/test/resources/junit-platform.properties):
When users don't specify an orderer, we should honor the
@Order
annotations. We also would need a test for this.Best done after #34681 to avoid merge woes.
(Also a bit relevant to #42715.)
We currently use the ClassName class orderer:
... but it should probably use the
org.junit.jupiter.api.ClassOrderer$OrderAnnotation
by default.The text was updated successfully, but these errors were encountered: