Re: Sorting filesets

2002-10-15 Thread Tom Lipkis
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,

RE: Sorting filesets

2002-10-15 Thread Dominique Devienne
] 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

RE: Sorting filesets

2002-10-14 Thread Eric Jablow
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

Re: Sorting filesets

2002-10-14 Thread Tom Lipkis
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

Re: Sorting filesets

2002-10-14 Thread Kendall Collett
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

Re: Sorting filesets

2002-10-14 Thread Steve Loughran
- 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

Re: Sorting filesets

2002-10-14 Thread Tom Lipkis
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

Re: Sorting filesets

2002-10-14 Thread Tom Lipkis
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

Re: Sorting filesets

2002-10-14 Thread Stefan Bodewig
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,