Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 52598 invoked from network); 11 Feb 2008 10:16:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Feb 2008 10:16:02 -0000 Received: (qmail 42740 invoked by uid 500); 11 Feb 2008 10:15:48 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 42696 invoked by uid 500); 11 Feb 2008 10:15:48 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 42685 invoked by uid 99); 11 Feb 2008 10:15:48 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Feb 2008 02:15:48 -0800 X-ASF-Spam-Status: No, hits=-2.6 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_NEUTRAL,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [192.6.10.2] (HELO colossus.hpl.hp.com) (192.6.10.2) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Feb 2008 10:15:00 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by colossus.hpl.hp.com (Postfix) with ESMTP id 88CBA6B9D7 for ; Mon, 11 Feb 2008 10:15:19 +0000 (GMT) X-Virus-Scanned: amavisd-new at hplb.hpl.hp.com Received: from colossus.hpl.hp.com ([127.0.0.1]) by localhost (colossus.hpl.hp.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 2Fgf7+aPThFF for ; Mon, 11 Feb 2008 10:15:15 +0000 (GMT) Received: from ha-node-br2.hpl.hp.com (ha-node-br2.hpl.hp.com [16.25.144.57]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by colossus.hpl.hp.com (Postfix) with ESMTP id 436B76B9B3 for ; Mon, 11 Feb 2008 10:15:15 +0000 (GMT) MailScanner-NULL-Check: 1203329699.70304@R7CkwkJatYy5MC6JJomTRQ Received: from [16.25.171.118] (morzine.hpl.hp.com [16.25.171.118]) by ha-node-br2.hpl.hp.com (8.14.1/8.13.4) with ESMTP id m1BAEvNO008043 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 11 Feb 2008 10:14:57 GMT Message-ID: <47B02025.1070405@apache.org> Date: Mon, 11 Feb 2008 10:15:01 +0000 From: Steve Loughran User-Agent: Thunderbird 2.0.0.9 (X11/20071031) MIME-Version: 1.0 To: Ant Users List Subject: Re: [Ant Java Source] How to get some build.xml params? References: <15364171.post@talk.nabble.com> <23fce8e60802091226r5de77ac9q5f9caa9875ff742@mail.gmail.com> <15390708.post@talk.nabble.com> In-Reply-To: <15390708.post@talk.nabble.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-HPL-MailScanner-Information: Please contact the ISP for more information X-MailScanner-ID: m1BAEvNO008043 X-HPL-MailScanner: Found to be clean X-HPL-MailScanner-From: stevel@apache.org X-Virus-Checked: Checked by ClamAV on apache.org rigel wrote: > Thank You for the advice, I'll do it :working: :-) > > > > The "problem" is that I'd like to print out additional test cases info into > the final Junit report, something like description, input data&format and > more but I haven't found a solution to do it directly from the JUnit > library. > > > So now I accompained all test case methods with an optional wired > description built upon a custom annotation class tag. > Something to use later during JUnit report generation for printing out some > aggregated data used for testing (input data and format, objectives and > more). A more sophiticated way to do this, which I'd like to do, would be to > getting this info directly from test method associated javadoc taglet. > > > > This sample report shows what I am working on: > http://www.nabble.com/file/p15390708/6_TestBigRationalFraction.html > 6_TestBigRationalFraction.html > > > Pratically I would like that JUnit report generator was unaware of specific > additional tags like "FUNCTIONAL/REGRESSIVE, DESCRIPTION, INPUT DATA". It > might only process this info as an additional tag to nest into for later > XSLT processing on customized report generator stylesheet. For this I > believe that I need a way to pass additional params from build.xml ... > > > > James Abley wrote: >> On 08/02/2008, rigel wrote: >>> Hello Everyone, >>> >>> I am currently working on some JUnit task sources, precisely on >>> "XMLJUnitResultFormatter" and "JUnitVersionHelper" of the library named >>> "ant-junit.jar". >>> >>> I have patched XMLJUnitResultFormatter to support additional test case >>> information passed by a custom annotation made up of three params, BUT >>> currently all annotation's params and annotation class name are brutally >>> wired into the code (for successive introspection). So I created an >>> annotation and a custom "XMLJUnitResultFormatter" that works only with >>> the >>> following params and annotation classname: >>> >>> @TestDescriptor(title="title",desc="desc",input={"0","1","2"}) >>> >>> >>> Substantially now I would like to pass "TestDescriptor" and >>> "title,desc,input" directly by the Ant build file to allow the use of any >>> available custom annotation, unfortunately I know only a way to do it, >>> opening the build.xml DOM and getting by myself the values because I am >>> not >>> able to figure out if it exists a static helper class that can do this >>> easily. Anyone can help me or point me on the right direction? I'd do it on the side by having people set ant properties before your task runs. Or extend the various ant tasks with more work. Trying to parse the dom yourself is going to get you in trouble. I've been thinking a bit about enhancing Ant's test reports, but nothing is implemented http://wiki.apache.org/ant/Proposals/EnhancedTestReports -steve -- Steve Loughran http://www.1060.org/blogxter/publish/5 Author: Ant in Action http://antbook.org/ --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org