How to determine order of JUnit test case execution (within a package)
When creating a JUnit debug setting including all classes
within a specified package, IDEA automatically selects
the classes to run as test cases.
Is it possible to somehow determine the order in which
these classes are executed/debugged?
I get a completly random order and would like to be able
to decide which test case is executed before others, etc.
Please sign in to leave a comment.
Bonny
>I get a completly random order and would like to be able
>to decide which test case is executed before others, etc.
>
JUnit tests should NEVER depend on their order of execution.
Though, for our convenience, there is a pending request for previously
failing tests to be run first.
Alain
Alain,
The tests are all independent, except that some fail, and
I would like to control the execution order so I can
execute them first, but I see that someone has already
beat me to it...
Cheers,
Bonny
"Execute failed tests first" is in the Irida roadmap, but hasn't shipped in EAP yet.
--Dave Griffith