Order of test execution
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   styrrell
Posted On:   Wednesday, July 18, 2012 01:23 PM

I am maintaining some JUnit tests. There are 100+ tests in one .java file / class, specified with @Test.  I run them as a batch using ant run-test. The person who was maintaining this before me says the tests would always run in the order they were listed in the .java file, but now this is no longer true. We are getting failures because some tests need to be run before others and they are not any more. Is there some way to force execution order to be the same as listed in the file?

About | Sitemap | Contact