ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ray Tayek <rta...@mediaone.net>
Subject Re: simple ant and junit fails - solved!
Date Mon, 07 Jan 2002 04:01:47 GMT
At 09:21 PM 1/6/02 -0500, you wrote:
>Try out more of the <junit> options.
>
>Here's a good start:
>
><junit printsummary="yes" haltonfailure="true">
>   <formatter type="brief" usefile="false"/> ...

ok, i did that and added classpath as follows:

   <target name="test" depends="compile">
     <junit fork="yes" printsummary="on"  haltonfailure="true">
     <classpath>
       <pathelement path="."/>
     </classpath>
     <test name="MainTest"/>
           <formatter type="brief" usefile="false"/>
     </junit>
   </target>

and it now works ok and says:

init:

compile:

test:
     [junit] Running MainTest
     [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0 sec
     [junit] Testsuite: MainTest
     [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0 sec
     [junit]

dist:

BUILD SUCCESSFUL

wonderful! (but those classpaths are confusing)

>...
>Now that you have Ant plugged in you can get rid of the 'main' method and
>the other test runners.  Ant is now your test runner, always.  :))

excellent


>Also, don't forget about 'ant -debug'.

good - lots of detail.

thanks

---
ray tayek http://home.earthlink.net/~rtayek/
orange county java users group http://www.ocjug.org/
want privacy? http://www.freedom.net/
hate spam? http://samspade.org/ssw/


--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message