Fork me on GitHub

Junit-DynamicSuite by Christof Schöll

Dynamically run all JUnit Tests in Directories or on the Classpath

The Dynamic Suite Runner exists to solve the problem of only running a filtered set of Unit Tests in your IDE.
This is mainly an Eclipse problem since it doesn't allow you to filter your unit tests in its run configuration.

To use it just create a TestSuite class and annotate it with:

@RunWith(DynamicSuite.class)
@Filter(DefaultFilter.class)
@Directory
You may use any class implementing the TestClassFilter interface or extending the DefaultFilter class to create a custom Filter for your Unit tests.

Dependencies

Install

The library is available via download on github or you can add it as maven dependency (central maven repository).

<dependency>
    <groupId>com.github.cschoell</groupId>
    <artifactId>junit-dynamicsuite</artifactId>
    <version>0.2.1</version>
</dependency>
        

Authors

Christof Schoell (c.schoell@gmx.net)

Contact

(c.schoell@gmx.net)

Download

You can download this project in either zip or tar or jar formats.

You can also clone the project with Git by running:

$ git clone git://github.com/cschoell/Junit-DynamicSuite