ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bret Kumler" <bkum...@firstam.com>
Subject RE: JFunc +ant
Date Thu, 10 Jul 2003 18:04:22 GMT
I won't need to extend BaseTest?

Will I need to write something like JUnitTest for JFunc? (e.g. JFuncTest)

I also need to write JFuncTestRunner?



-----Original Message-----
From: Jan.Materne@rzf.fin-nrw.de [mailto:Jan.Materne@rzf.fin-nrw.de]
Sent: Wednesday, July 09, 2003 11:09 PM
To: user@ant.apache.org
Subject: RE: JFunc +ant


Maybe write a new TestRunner.
Extend the JFuncRunner and add the code from Ant´s JUnitTestRunner for
handling the nested elements.

Sorry, no better idea.


Jan

> -----Original Message-----
> From: Bret Kumler [mailto:bkumler@firstam.com]
> Sent: Thursday, July 10, 2003 1:18 AM
> To: Ant Users List
> Subject: RE: JFunc +ant
>
>
> Here's the JFunc ANT target I added..
>
> <target name="jfunctest" depends="dist">
>           <java classname="junit.extensions.jfunc.textui.JFuncRunner"
> fork="yes">
>           <!--jvmarg value="-noverify" /-->
>           <arg value="--color"/>
>           <arg value="SimpleBeanTest" />
>                <classpath>
>                      <pathelement location="build" />
>                      <pathelement
> location="C:/Tools/jfunc1.1/lib/junit.jar"
> />
>                      <pathelement
> location="C:/Tools/jfunc1.1/lib/jcfe.jar"
> />
>                      <pathelement
> location="C:/Tools/jfunc1.1/lib/bcel.jar"
> />
> 		     <pathelement
> location="C:/Tools/jfunc1.1/lib/jfunc.jar" />
>                </classpath>
>            </java>
>   </target>
>
>
> I'm not sure how to use the
>
> <junit printsummary="yes" fork="yes" haltonfailure="yes">
>   <formatter type="xml"/>
>   <test name="SimpleBeanTest"/>
> </junit>
>
> <junitreport todir="./reports">
>   <fileset dir="./reports">
>     <include name="TEST-*.xml"/>
>   </fileset>
>   <report format="frames" todir="./report/html"/>
> </junitreport>
>
> for the output, any ideas on how to make it work????
>
>
> Thanks,
>
> Bret
>
>
> -----Original Message-----
> From: Jan.Materne@rzf.fin-nrw.de [mailto:Jan.Materne@rzf.fin-nrw.de]
> Sent: Tuesday, July 08, 2003 10:18 PM
> To: user@ant.apache.org
> Subject: AW: JFunc +ant
>
>
> > Not trying to get in to a JUnit vs some other tool battle here....
>
> A right word :-)
>
>
>
> > Just wanted the same reporting mechanism which ANT provides
> for JUnit.
>
> I took a little look into the source of Ant. Interesting part
> would be the
> taskdefs.optional.junit package.
> JUnitTestRunner is the class for driving the tests. That
> classname is hard
> coded
> in JUnitTask (the <junit> implementation), e.g. in
> executeAsForked(...).
>
> The JUnitTestRunner will extract all the testcases from the
> list of classes
> (first
> by a given suite() method secondary by the TestCase(Class)
> constructor).
>
> The JUnitTestRunner implements the junit.framework.TestListener and is
> therefore
> the bridge to JUnit (as I see).
>
> For short: JUnitTestRunner
> - collects the testcases
> - runs each testcase and
> - collects the output.
>
> The testcases run is done by its testXXX() method.
>
>
>
> So far with JUnit - but I don´t know JFunc.
>
> But if the JFunc testclasses extend the JUnit testclasses it
> should work
> without
> any modification.
> I think its worth to try .
>
>
>
> Jan
>
>
>
> ---------------------------------------------------------------------
> 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


Mime
View raw message