How to change test execution order in JUnit5?

JUnit4 has an annotation @FixMethodOrderthat allows you to use the alphabetical order of execution of test methods. Is there a similar JUnit5 mechanism?

+4
source share
1 answer

No, not yet. For unit tests, the execution order should be irrelevant. For more complex tests, JUnit aims to provide explicit support - a test order will be part of this.

+5
source

Source: https://habr.com/ru/post/1661112/


All Articles