Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@apache.org Received: (qmail 38156 invoked from network); 31 Oct 2001 16:57:00 -0000 Received: from unknown (HELO osaka.betaversion.org) (192.18.49.133) by daedalus.apache.org with SMTP; 31 Oct 2001 16:57:00 -0000 Received: (qmail 17710 invoked from network); 31 Oct 2001 16:59:12 -0000 Received: from nagoya.betaversion.org (192.18.49.131) by osaka.betaversion.org with SMTP; 31 Oct 2001 16:59:12 -0000 Received: (qmail 13198 invoked by uid 97); 31 Oct 2001 16:56:52 -0000 Delivered-To: qmlist-jakarta-archive-ant-user@jakarta.apache.org Received: (qmail 13182 invoked by uid 97); 31 Oct 2001 16:56:52 -0000 Mailing-List: contact ant-user-help@jakarta.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 ant-user@jakarta.apache.org Received: (qmail 13171 invoked from network); 31 Oct 2001 16:56:51 -0000 Message-ID: <008a01c1622d$05f9ec80$0500a8c0@darden.virginia.edu> From: "Erik Hatcher" To: "Ant Users List" References: <20011031155749.10791.cpmta@c006.snv.cp.net> Subject: Re: How to run a single Junit test? Date: Wed, 31 Oct 2001 11:56:44 -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.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Have a look at Ant's very own build.xml. It does this very thing. Line 788 of http://cvs.apache.org/viewcvs/jakarta-ant/build.xml?annotate=1.192 Erik ----- Original Message ----- From: To: Sent: Wednesday, October 31, 2001 10:57 AM Subject: How to run a single Junit test? > Hello, > > All examples of integrating Ant and Junit show you how to run a set of unit tests in a single step. > > What is the best way to run a single, specific unit test? > > For example, if I have a TestCase at com.nut.KikirikiTest is there an easy way to invoke Ant and tell it to run just that one test? > > I imagine one could specify it on the command line, like this for example: > > ant singletest -Dtest=com.nut.KikirikiTest > > And then in 'singletest' target one would just run this single test. > > I was wondering if there is a better (more elegant and/or shorter) way of doing this? > > Thanks, > Otis > > _________________________________________________________________ > iVillage.com: Solutions for Your Life > Check out the most exciting women's community on the Web > http://www.ivillage.com > > -- > To unsubscribe, e-mail: > For additional commands, e-mail: > > -- To unsubscribe, e-mail: For additional commands, e-mail: