car_car_car wrote:
I need some indication if the tests fail, but i still want the other targets
to run.
When i say parallel i mean that a group of targets should run , not
depending on the other target's success.
OK. That's slightly different. <junit> sets a property but does not act
on it.
My targets are in this pattern:
<target name="target_b" depends="target_a">
........
do all kind of work
........
<junit fork="yes" printsummary="yes" failureproperty="unittest.failed" >
....
<test
name="com.projectTarget.runnable.testrun.endToEnd.componentATR"
todir="${junit.output.dir}/${moduleName}"/>
....
</junit>
<fail if="unittest.failed" message="There was a Problem with endToEnd
Tests!"/>
pull this <fail>; add a target that prints a warning
</target>
<target name="test" depends="print-results"/>
<target name="print-results" if="unittest.failed" depends="target_b">
<echo>There was a Problem with endToEnd Tests!"</echo>
</target>
the message is only printed if the tests failed. In our big projects we
make the <fail> operation conditional because we may want to test lots
of modules and not stop at the first failure;
--
Steve Loughran http://www.1060.org/blogxter/publish/5
Author: Ant in Action http://antbook.org/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]