views:

135

answers:

0

Is there a JUnit 4+ test case execution priority toolkit?

In the development teams I work we use JUnit 4+ for basic/unit testing and also for integration testing and system testing.

1) One trait of the integration and system test cases is that they generally take longer time to execute than unit tests, typically between 1 second - 60 minutes. In continuous integration we want quick feedback. Therefore we want to create separate test suites that only contain a subset of all test cases in a junit test class.

2) Another trait is that a specific order of test cases is wanted. For instance, installation must always be executed before all other integration and system tests.

In JUnit 3 all these problems could be solved with creating test suites and adding test cases manually. I JUnit 4 it is not possible to create test suites with test case granularity, only test class granularity.

Decreased feedback time (and decreased developer frustration) is the main reason why this feature is wanted.