Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 66646 invoked from network); 26 Nov 2003 02:14:37 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 26 Nov 2003 02:14:37 -0000 Received: (qmail 57363 invoked by uid 500); 26 Nov 2003 02:13:12 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 57336 invoked by uid 500); 26 Nov 2003 02:13:11 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 57319 invoked from network); 26 Nov 2003 02:13:11 -0000 Received: from unknown (HELO hotmail.com) (64.4.14.195) by daedalus.apache.org with SMTP; 26 Nov 2003 02:13:11 -0000 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Tue, 25 Nov 2003 18:13:20 -0800 Received: from 146.115.121.128 by law10-oe60.law10.hotmail.com with DAV; Wed, 26 Nov 2003 02:13:20 +0000 X-Originating-IP: [146.115.121.128] X-Originating-Email: [mgainty@hotmail.com] From: "Martin Gainty" To: "Ant Users List" Cc: References: <1069807799.3fc3f8b7de2db@webmail.neptune.lunarpages.com> Subject: Re: run junit tests in a certain order Date: Wed, 26 Nov 2003 02:13:16 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Message-ID: X-OriginalArrivalTime: 26 Nov 2003 02:13:20.0507 (UTC) FILETIME=[DCBF7CB0:01C3B3C2] X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Derive your own class from File code the listFile() method ordering the way you see fit.. -Martin ----- Original Message ----- From: "J. Xue" To: "Ant Users List" Sent: Tuesday, November 25, 2003 7:49 PM Subject: run junit tests in a certain order > > I'm sure I'm not the first one having this problem but can't find anything on > google. > > I would like to be able to run some JUnit tests in a certain order, e.g., > starting from the most basic ones. There doesn't seem to be a perfect way to > do this using the task. takes a fileset, so the order of > the test files is basically determined by File.listFile(), which returns files > in an OS-specific order. > > For a workaround, I wrote a master test suite, in which I read from a file > that has the list of test files in the order I want them to run. I then run > it using . Now everything works fine as far as order enforcement is > concerned - but all the test methods are listed under the master test suite > class in the report! So if I have two test methods from different classes > with the same name, I wouldn't be able to tell which is which. > > Other options include hardcoding the order into build.xml, or hack the source > code for to take a file list. Neither of those paths smells like > a pleasant solution, though. > > Any hint would be appreciated. > --J.X. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org > For additional commands, e-mail: user-help@ant.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org