> Can one control the ordering of test *methods* inside a test class? I'm > using JUnit 4.11 and Surefire 2.13. > > It seems to me from the wording of the runOrder parameter this would be > used to choose what test *classes* to run in what order. > > One of our developers is pointing out that Surefire 2.13 seems to have > changed the order that it uses to run methods inside her test class. > > While I know and you don't have to tell me that ordering shouldn't be a > property of unit tests, I want to at least understand if it is > controllable > or not.
If your test methods depend on the order in which they are executed they should be refactored to be atomic rather than trying to order them via the test framework. manfred --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org