Unit test failure since upgrade from quarkus 3.33 to 3.40
Author: thibaultmeyerCreated Oct 1, 2026Updated Oct 1, 2026
Labelskind/bugarea/testing
Describe the bug
I try to upgrade from Quarkus 3.33.3 LTS to 3.40.1 LTS, i have issue with unit tests using multiple @TestProfile. I have 3 test class using different TestProfile.
How to disable this and let my unit tests run in any order like Quarkus 3.33.x ?
[ERROR] Critical failure. Quarkus tests would fail with corrupted application errors.
The reason is that they would not run in the right order, because the Quarkus JUnit configuration has been overridden.
When there are multiple test profiles or resources, Quarkus uses a JUnit ClassOrderer to sort tests so that test with the same profile run one after each other.
Running tests with a different sorting risks tests running on an application that has been cleaned up.
To set a test order while preserving the Quarkus required sorting, please use the Quarkus configuration to set junit.quarkus.orderer.secondary-orderer=org.junit.jupiter.api.ClassOrderer$ClassName, and remove the junit-platform.properties (if any) from the classpath.junit-platform.propertiesdoes not exists on my project.junit.quarkus.orderer.secondary-orderer=org.junit.jupiter.api.ClassOrderer$ClassNamedoes not works.
Source: quarkusio/quarkus