From dev-return-74317-apmail-ant-dev-archive=ant.apache.org@ant.apache.org Tue Sep 05 18:28:27 2006 Return-Path: Delivered-To: apmail-ant-dev-archive@www.apache.org Received: (qmail 20753 invoked from network); 5 Sep 2006 18:28:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 5 Sep 2006 18:28:26 -0000 Received: (qmail 23366 invoked by uid 500); 5 Sep 2006 18:28:25 -0000 Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 23318 invoked by uid 500); 5 Sep 2006 18:28:25 -0000 Mailing-List: contact dev-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Developers List" Reply-To: "Ant Developers List" Delivered-To: mailing list dev@ant.apache.org Received: (qmail 23307 invoked by uid 99); 5 Sep 2006 18:28:25 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Sep 2006 11:28:25 -0700 X-ASF-Spam-Status: No, hits=2.8 required=10.0 tests=DNS_FROM_RFC_ABUSE,DNS_FROM_RFC_POST,DNS_FROM_RFC_WHOIS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [206.190.58.159] (HELO web55110.mail.re4.yahoo.com) (206.190.58.159) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 05 Sep 2006 11:28:24 -0700 Received: (qmail 81578 invoked by uid 60001); 5 Sep 2006 18:28:03 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=e/4PiG6oi3hWz/EolyNVf6OeYMsNqdx4YcIUeTGFUvbhbOxzgUa0+lC2lQQmOHIXDkx9PyhfbUOKkeuWpm0U+j1gxjSNLN8K5qaokWcFskVARz4GOdYvOViL8odtnl14k3oYwymJ5mIwI2ZeNLw7Ht79i30L2Z2f5lzAwPmZl8A= ; Message-ID: <20060905182803.81576.qmail@web55110.mail.re4.yahoo.com> Received: from [66.10.233.130] by web55110.mail.re4.yahoo.com via HTTP; Tue, 05 Sep 2006 11:28:03 PDT Date: Tue, 5 Sep 2006 11:28:03 -0700 (PDT) From: Matt Benson Subject: Re: antunit integration To: Ant Developers List In-Reply-To: <255d8d690609051039o43739d40xb20e6bea3e7deee5@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N --- Dominique Devienne wrote: > > xmlns:au="antlib:org.apache.ant.antunit"> > > > includes="**/*.xml" > > excludes="**/*-support.xml" /> > > <...listener... /> > > > > > > I excluded *-support.xml because I thought there > might > > be a need for support xml files (hopefully that > was > > obvious), and I selected a straightforward > convention. > > What modifications to this strategy do others > > advocate? > > I've always used **/test/*Test.class for JUnit tests > (because sources > and tests were in the same tree), but I like having > the "test" suffix > to positively indicate a test, more than grabbing > all .xml files, and > excluding some. > > So I'm more in favor of includes="**/*-test.xml" if > we go with the > task-test.xml convention rather than TaskTest.xml > one. I can certainly see that this is reasonable and would be fine if this convention were chosen. As you circumspectly indicate, *-test.xml is no more cumbersome than *Test.java (the mandatory suffix just seems superfluous to me personally, hence my proposed includes/excludes scheme). > > But I'm more worried about the bootstrapping issue, > once AntUnit is > used in Ant itself (which I'm +1 on). Surely AntUnit > is dependent on > Ant, and it's in a different hierarchy, so how *can* > Ant use it and > bootstrap cleanly from sources? JUnit is an external > dependency, but > one that's independent of Ant. --DD This chicken-and-egg issue was discussed before; I am unfortunately too lazy to go find it in the archives, but the answer was that Ant does not bootstrap antunit to run its own tests; rather a built antunit is used with Ant in pretty much the same way junit is. IOW, just drop an antunit jar into ant/lib and away we go. Acceptable? -Matt > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > dev-unsubscribe@ant.apache.org > For additional commands, e-mail: > dev-help@ant.apache.org > > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org For additional commands, e-mail: dev-help@ant.apache.org