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:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>