Can gradle run two tests in a specific (desired) order in the same JVM?


(Casey Lucas) #1

I’m trying to reproduce a CI failure and need the tests to run in a specific order so that I can verify the problem. See: http://stackoverflow.com/questions/19552424/can-gradle-run-two-tests-in-a-specific-order


(Peter Niederwieser) #2

You can’t control this on the Gradle level, but you can use a JUnit test suite, which (I believe) will execute tests classes in their declared order. At least there should be an option for this.


(Casey Lucas) #3

Ultimately, I ended doing something like that. Thanks for the help.