On Mon, 14 Oct 2002, Tom Lipkis <[EMAIL PROTECTED]> wrote: > I'm trying to find a way to run JUnit test classes in a particular > order, which is determined by some property of each class. I was > easily able to pick a subset of test classes by writing a selector > to use in a batchtest's fileset, but I don't see an analogous > approach to sorting the fileset.
There isn't. Sort order of <fileset>s is completely undefined (and highly OS and JVM dependent). To achieve what you want, don't use <barchtest> but write a TestSuite of your own that contains the tests in the order you want to run them - and then use <test> to run this TestSuite. Note 2: don't write tests that depend on the order of execution, write your tests to be independent. 8-) Stefan -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>