How to use JUnits failureproperty with subprojects?

N

Nick de Graeve

We're using CruiseControl to build and test our code and to get reports
of CheckStyle and JUnit.
The project consists of a core and multiple plugins, each with their
own sources and tests.<br>
We have a main build.xml that processes the core classes and their
tests. From here we call the plugins' own build.xml to compile and
test.

We'd like Ant to run the tests of the core and all plugins and when all
of them are done, decide whether to fail the build. That way we can
have good reports in CC about our tests.<br>

The 'failureproperty' and 'errorproperty' attributes of the 'junit'
task in combination with the 'fail' task seem the way to go but we
can't get it to work with the plugins.

Is it at all possible to do? And if so, how do we do it?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top