This application helps to execute jUnit tests in a random order. jUnit is a framework to make unit test in Java code.
The best explanation about how this application works can be found in this thread of StackOverflow . The original idea is from Michael Lloyd Lee
The icon was taken from http://findicons.com/icon/437340/media_shuffle . This image is licensed under CC-BY-ND.
You just need to download the jar file and add it as a library in the Java Build Path of the project.
To use inside a Maven project you just have to add this dependency:
<dependency> <groupId>net.sf.randomjunit</groupId> <artifactId>random-jUnit</artifactId> <version>1.0.3</version> </dependency>
For more information, take a look a Maven Central
You could randomize the execution of your Suites by configuring like this:
@RunWith(RandomSuite.class) @SuiteClasses({ Suite1.class , Suite2.class }) public final class AceptationTests { }
For more information, please visit our Wiki .
You could randomize the execution of your tests inside a Suite, by doing this:
@RunWith(RandomTestRunner.class) public final class Suite1 { @Test public void test1(){ } }
For more information, please see our Wiki .