Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@jakarta.apache.org Received: (qmail 51753 invoked by uid 500); 22 Oct 2001 23:37:03 -0000 Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Reply-To: ant-user@jakarta.apache.org Delivered-To: mailing list ant-user@jakarta.apache.org Received: (qmail 51744 invoked from network); 22 Oct 2001 23:37:03 -0000 Message-ID: <00be01c15b52$77ae44c0$6401a8c0@darden.virginia.edu> From: "Erik Hatcher" To: References: <40FBA97BF41D724DA0B3B600F506BA060849F9@OAK.tascola.com> Subject: Re: Junit Options ... question Date: Mon, 22 Oct 2001 19:37:08 -0400 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.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N I don't know. How would you do it with JUnit's command-line? Sorry, I didn't really answer your original question - doh! I'm pretty sure there is no way to execute only a single test method with Ant's JUnit integration. Its really up to the TestCase to define the 'suite' to run, unless it has some hooks to allow a method name passed in to it, but even then Ant's wouldn't take advantage of it. If you can do it from the command-line you could always run it with for the time being and send that back as a reply to this thread so that it could possibly be integrated with the task somehow. Erik ----- Original Message ----- From: "Eddie Espino" To: Sent: Monday, October 22, 2001 7:12 PM Subject: RE: Junit Options ... question Thanks for the pointer Erik. How would one execute a single Method (Test Unit) on the command-line as part of an Ant invocation? -=eddie -----Original Message----- From: Erik Hatcher [mailto:jakarta-ant@ehatchersolutions.com] Sent: Monday, October 22, 2001 4:10 PM To: ant-user@jakarta.apache.org Subject: Re: Junit Options ... question >>From Ant's very own build.xml: And its run like this: ant run-single-test -Dtestcase= ----- Original Message ----- From: "Eddie Espino" To: "Ant-User@Jakarta. Apache. Org (E-mail)" Sent: Monday, October 22, 2001 5:43 PM Subject: Junit Options ... question Is it easily to execute a single test within a Testcase from an Ant file? I would like to pass in argument specifying the TestCase class and test method to invoke. I would rather not have to update an AllTests suite wrapper. I can't seem to see how one would set this up. Any pointers, are greatly appreciated. Regards, -=eddie _____ Eddie Espino _____ Tascola, Inc. 12647 Alcosta Blvd., Suite 350 San Ramon, CA 94583 Phone: (925) 244.9893 Cell: (925) 437-3734 Fax: (925) 244-6781 www.Tascola.com