/concurrent-junit

JUnit test runner to run concurrent unit tests

Primary LanguageJava

concurrent-junit

A http://junit.org test runner to run concurrent unit tests. Runs the tests of one test class in the following order:

  1. Runs methods marked with org.junit.Before annotation in the main thread.
  2. Runs methods marked with org.junit.Test annotation. Each method is run in 4 parallel threads.
  3. Runs methods marked with org.junit.After annotation in the main thread.

See WrongAtomicityStack for an example on how to use org.junit.Before. See RaceConditionVolatileCounter for an example on how to use org.junit.After. Most useful when using a dynamic race condition catcher like http://vmlens.com.

Java Doc

javadoc

Supported junit versions

concurrent-junit is tested with junit 4.11 and 4.12

Latest release

Maven

<dependency>
<groupId>com.vmlens</groupId>
<artifactId>concurrent-junit</artifactId>
<version>1.0.2</version>
</dependency>

License

concurrent-junit is released under the Eclipse Public License 1.0

Blog Entries about concurrent junit