My tests are executed in different order in eclipse and in jenkins. I want the results to be the same and independent from the environment. The tests are not parallel. I do not care about specyfing the order, I just want them to run in the same order always.
Why? Because they are integration tests and they use the database. Sometimes they impact each other and it would be hard to isolate them completely. So if they fail, I'd like at least to have them failing everywhere to make fixes easier, without debugging jenkins remotely...
edit: here is an example of the order i'm getting in eclipse:
2013-01-22 14:39:06,186 main INFO category - Starting test A.a
2013-01-22 14:39:06,547 main INFO category - Starting test B.a
2013-01-22 14:39:10,614 main INFO category - Starting test C.a
2013-01-22 14:39:11,983 main INFO category - Starting test D.a
2013-01-22 14:39:12,492 main INFO category - Starting test D.b
2013-01-22 14:39:12,889 main INFO category - Starting test A.b
2013-01-22 14:39:13,657 main INFO category - Starting test A.c
2013-01-22 14:39:18,626 main INFO category - Starting test D.c
2013-01-22 14:39:19,041 main INFO category - Starting test A.d
2013-01-22 14:39:19,756 main INFO category - Starting test A.e
2013-01-22 14:39:20,724 main INFO category - Starting test D.e
2013-01-22 14:39:21,515 main INFO category - Starting test A.f
I'm using groups in test suite xml (actually, in this particular suite I run all except some groups). There is no specific list of test methods provided in the xml. The order above is quite random.