The ability to randomize the order of tests has always been a useful tool for diagnosing flaky tests as it exposes the interdependency between tests. However, until JUnit 5.8.0, you were only able to randomize the order of methods within a test class using MethodOrder$Random. Now you can also randomize the class order!
Lets setup version 5.8.0 of JUnit, and demonstrate how to run classes and methods randomly.
1. Setting up JUnit 5.