Return-Path: list-help: list-unsubscribe: List-Post: List-Id: Mailing-List: contact cactus-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list cactus-user@jakarta.apache.org Received: (qmail 54622 invoked from network); 7 Aug 2003 14:08:30 -0000 Received: from unknown (HELO smtp.akros.it) (193.109.105.156) by daedalus.apache.org with SMTP; 7 Aug 2003 14:08:30 -0000 Received: (qmail 20556 invoked from network); 7 Aug 2003 14:08:30 -0000 Received: from allba.akros.it (172.25.3.131) by 0 with SMTP; 7 Aug 2003 14:08:30 -0000 Message-Id: <5.0.2.1.0.20030807155441.00b11420@pop3.akros.it> X-Sender: allba@akros.it@pop3.akros.it X-Mailer: QUALCOMM Windows Eudora Version 5.0.2 Date: Thu, 07 Aug 2003 16:08:28 +0200 To: "Cactus Users List" From: Barbara Allori Subject: RE: Organize the report In-Reply-To: <050601c35cc0$21557230$4024b4d4@vma> References: <5.0.2.1.0.20030731123256.00aee930@pop3.akros.it> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="=====================_27180463==_.ALT" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N --=====================_27180463==_.ALT Content-Type: text/plain; charset="us-ascii"; format=flowed Hi Vincent, I mean a junit report and I'm using Ant and task in this way: ..... and SuiteStart is like: ..... TestSuite suite = new TestSuite("Junit Tests"); suite.addTest(tools.TestTools1.suite()); suite.addTest(tools.TestTools2.suite()); suite.addTest(utility.TestUtility1.suite()); suite.addTest(utility.TestUtility2.suite()); .... return suite; So, I'd like to organize the report grouping it by package, but I it's possible if in the xml report I have only the name of the test case? At 10.44 07/08/2003 +0200, you wrote: >Hi Barbara, > >Do you mean a junit report? Do you mean having several junit reports? > >In any case, reporting is separate from the Cactus core, so there is no >reason you cannot achieve what you want. > >The real question is which tools are you using: >1- Ant and the Cactus task? >2- Maven and the Cactus plugin for Maven? >3- something else? > >Tools 1 and 2 already provide reporting out of the box. With 3 you have >to create it yourself. > >-Vincent > > > -----Original Message----- > > From: Barbara Allori [mailto:ballori@akros.it] > > Sent: 31 July 2003 12:35 > > To: cactus-user@jakarta.apache.org > > Subject: Organize the report > > > > Hi, > > > > I'm trying to create a report for my cactus's test and I'd like >to > > organize the report grouping it by package. > > > > For example if I have this packages: > > > > 1) tools with this class test: TestTools1, TestTools2 > > 2) utility with this class test: TestUtility1,TestUtility2 > > 3) base with this class test: TestBase1,TestBase2 > > > > I'd like the report being in this way: > > > > Package > > tools > > > > Test > > TestTools1 > > TestTools2 > > > > Package > > utility > > > > Test > > TestUtility1 > > TestUtility2 > > > > Package > > base > > > > Test > > TestBase1 > > TestBase2 > > > > > > Is it possible? > > > > Regards, > > Barbara > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org > > For additional commands, e-mail: cactus-user-help@jakarta.apache.org > > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org >For additional commands, e-mail: cactus-user-help@jakarta.apache.org --=====================_27180463==_.ALT Content-Type: text/html; charset="us-ascii" Hi Vincent,

I mean a junit report and I'm using Ant and <junit> task in this way:

.....
<target name="test" depends="check.properties">
        <mkdir dir="${report}"/>
        <junit printsummary="yes" fork="yes" haltonfailure="yes">
        <classpath>
                <path refid="project.class.test.path"/>
                <pathelement location="${java.class.path}"/>
        </classpath>
        <formatter type="xml"/>
        <test name="test.SuiteStart" haltonfailure="no" todir="${report}" outfile="JUnit-Report"/>
        </junit>
</target>

<target name="jrep" depends="test">
        <mkdir dir="${report}/html"/>
        <junitreport todir="${report}/html">
                <fileset dir="${report}">
                <include name="JUnit-*.xml"/>
        </fileset>
        <report format="noframes" todir="${report}/html"/>
        </junitreport>
</target>


and SuiteStart is like:

.....
TestSuite suite = new TestSuite("Junit Tests");
suite.addTest(tools.TestTools1.suite());
suite.addTest(tools.TestTools2.suite());
suite.addTest(utility.TestUtility1.suite());
suite.addTest(utility.TestUtility2.suite());
....
return suite;

So, I'd like to organize the report grouping it by package, but I it's possible if in the xml report I have only the name of the test case?


At 10.44 07/08/2003 +0200, you wrote:
Hi Barbara,

Do you mean a junit report? Do you mean having several junit reports?

In any case, reporting is separate from the Cactus core, so there is no
reason you cannot achieve what you want.

The real question is which tools are you using:
1- Ant and the Cactus <cactus> task?
2- Maven and the Cactus plugin for Maven?
3- something else?

Tools 1 and 2 already provide reporting out of the box. With 3 you have
to create it yourself.

-Vincent

> -----Original Message-----
> From: Barbara Allori [mailto:ballori@akros.it]
> Sent: 31 July 2003 12:35
> To: cactus-user@jakarta.apache.org
> Subject: Organize the report
>
> Hi,
>
>       I'm trying to create a report for my cactus's test and I'd like
to
> organize the report grouping it by package.
>
> For example if I have this packages:
>
> 1) tools with this class test: TestTools1, TestTools2
> 2) utility with this class test: TestUtility1,TestUtility2
> 3) base with this class test: TestBase1,TestBase2
>
> I'd like the report being in this way:
>
> Package
> tools
>
> Test
> TestTools1
> TestTools2
>
> Package
> utility
>
> Test
> TestUtility1
> TestUtility2
>
> Package
> base
>
> Test
> TestBase1
> TestBase2
>
>
> Is it possible?
>
> Regards,
> Barbara
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: cactus-user-help@jakarta.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: cactus-user-help@jakarta.apache.org
--=====================_27180463==_.ALT--