Bug 578570

Summary: [Junit] junit-platform.properties > setting junit.jupiter.testclass.order.default not honored
Product: [Eclipse Project] PDE Reporter: Arthur Borsboom <arthurborsboom>
Component: UIAssignee: PDE-UI-Inbox <pde-ui-inbox>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3    
Version: 4.23   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard: stalebug

Description Arthur Borsboom CLA 2022-02-03 14:47:17 EST
Project type: J2EE
Functionality:

- [Run As] > [Junit Test] or
- [Coverage As] > [Junit Test] on project

JUnit offers configuration by a configuration file 'junit-platform.properties' in src/test/resources

In this case there is only one setting in the JUnit configuration file.

junit.jupiter.testclass.order.default=org.junit.jupiter.api.ClassOrderer$ClassName

This setting tells JUnit to execute the JUnit tests in class package alphabetical order.

When I run 'maven test' outside Eclipse by CLI, the setting is honored.
When I run JUnit tests inside Eclipse, this setting is not honored and all tests are executed in what seems to be random order.

This is a JUnit setting introduced in JUnit v5.8.0.

https://junit.org/junit5/docs/5.8.0/user-guide/index.html#writing-tests-test-execution-order-classes

Am I doing something wrong, or is this a bug in Eclipse/JUnit?
Comment 1 Eclipse Genie CLA 2024-01-25 02:44:17 EST
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.