How to change tests execution order in JUnit5?

Edit: JUnit 5.4 is officially released now, so no need to use snapshots anymore. This is now possible with JUnit 5.4. https://junit.org/junit5/docs/current/user-guide/#writing-tests-test-execution-order To control the order in which test methods are executed, annotate your test class or test interface with @TestMethodOrder and specify the desired MethodOrderer implementation. You can implement your own custom MethodOrderer or … Read more