There isn't. Sort order of filesets is completely undefined (and
highly OS and JVM dependent).
I was going to try to make a case for a 'sortby' attribute on fileset
that would take a comparator, but I can't come up with other situations
where it would be useful.
To achieve what you want,
]
Subject: Re: Sorting filesets
Note 2: don't write tests that depend on the order of execution, write
your tests to be independent. 8-)
Right. They are. I hope I've adequately explained my reasons for this.
Thanks,
Tom
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional
From: Tom Lipkis [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 14, 2002 12:57 PM
To: [EMAIL PROTECTED]
Subject: Sorting filesets
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
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
Typically, you don't want to do this. Tests should be
independent of each other. JUnit does not guarantee the
Subject: Re: Sorting filesets
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
Typically, you don't want to do this. Tests should be
independent of each other
- Original Message -
From: Eric Jablow [EMAIL PROTECTED]
To: 'Ant Users List' [EMAIL PROTECTED]
Sent: Monday, October 14, 2002 11:24 AM
Subject: RE: Sorting filesets
From: Tom Lipkis [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 14, 2002 12:57 PM
To: [EMAIL PROTECTED
As a non-Ant approach to this problem, have you considered OrderedTestSuite
provided in the JUnit addons package (see
http://sourceforge.net/projects/junit-addons)?
I hadn't, but while I could write a TestSuite subclass that does what I
want (similar to OrderedTestSuite but sorted
It tends to run them in order test1, test2, etc. but that may be an artifact
of how the JVM runtime, rather than junit itself.
I've noticed that Class.getMethods() seems to return them in the order they
appear in the source file, but I certainly wouldn't depend on that. And
again, I'm trying
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,