Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 38061 invoked from network); 24 Sep 2004 10:38:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 24 Sep 2004 10:38:59 -0000 Received: (qmail 35614 invoked by uid 500); 24 Sep 2004 10:40:00 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 35276 invoked by uid 500); 24 Sep 2004 10:39:50 -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 35114 invoked by uid 99); 24 Sep 2004 10:39:40 -0000 X-ASF-Spam-Status: No, hits=0.1 required=10.0 tests=DNS_FROM_RFC_ABUSE,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of ad-rocha@uol.com.br designates 200.221.11.59 as permitted sender) Received: from [200.221.11.59] (HELO smtp.uol.com.br) (200.221.11.59) by apache.org (qpsmtpd/0.28) with ESMTP; Fri, 24 Sep 2004 03:39:18 -0700 Received: from andre (200-158-87-70.dsl.telesp.net.br [200.158.87.70]) by scorpion6.uol.com.br (Postfix) with ESMTP id 8A8F2A444 for ; Fri, 24 Sep 2004 07:39:09 -0300 (BRT) From: =?iso-8859-1?Q?Andr=E9_Dantas_Rocha?= To: "'Ant Users List'" Subject: RES: Choosing junit tests Date: Fri, 24 Sep 2004 07:39:56 -0300 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.6353 In-Reply-To: <20040924102559.71363.qmail@web52909.mail.yahoo.com> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 Thread-Index: AcSiIQCLZar3zyJsQqCOGwP/2bL53wAAbtQA Message-Id: <20040924103909.8A8F2A444@scorpion6.uol.com.br> X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Thanks for your reply Ivan and Jan. I'll try it... -----Mensagem original----- De: Ivan Ivanov [mailto:rambiusparkisanius@yahoo.com] Enviada em: sexta-feira, 24 de setembro de 2004 07:26 Para: Ant Users List Assunto: Re: Choosing junit tests Yes, there is but it is JUnit Specific. Create a TestSuite and add your tests in it (copied from [1] and modified for your sample): TestSuite suite= new TestSuite(); suite.addTest(new MoneyTest("testCase2")); suite.addTest(new MoneyTest("testCase3")); TestResult result= suite.run(); However, I used the above way to instantiate a TestSuite only once, when I needed my test case run in a specific sequence. For all other cases, I use (also taken from [1]) TestSuite suite= new TestSuite(MyTestCase.class); TestResult result= suite.run(); Happy juniting Ivan [1]http://junit.sourceforge.net/doc/cookbook/cookbook.htm --- Andri Dantas Rocha wrote: > Hi, > > Is there a way to specify the junit tests to run? > > Something like this: > > public classe MyTestCase extends TestCase { > public void testCase1 {} > public void testCase2 {} > public void testCase3 {} > } > > I would like to run only testCase2 and testCase3. Is it possible? > > Thanks, > > Andri > __________________________________ Do you Yahoo!? Yahoo! Mail is new and improved - Check it out! http://promotions.yahoo.com/new_mail --------------------------------------------------------------------- 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