Hans, On Mon, 2009-10-05 at 13:01 +0200, Hans Dockter wrote: [ . . . ] > The new native test runners we developing for 0.9 should provide a > nice solution for this.
OK, I need to be an early adopter I think !
The application is the Gant build system which is currently a 4 project
build but may end up as a 5 project one -- each project is simply a
different build of the same source (not actually a different project).
What I want to do is to ensure that all project tests are run in the
Bamboo and Buildbot CI builds even if individual ones fail.
> Meanwhile you could do the following. Set stopAtFailuresOrErrors to
> true and add the following hook:
>
> gradle.taskGraph.afterTask { task, exception ->
> if (task instanceof Test && exception != null) {
> // do something (for example set a property)
> }
> }
>
> Have a special ci task that let the build fail if any tests in the
> subprojects have failed.
>
> For 0.9 we will have an api method of the test task that tells you
> whether tests have failed or not.
Thanks, I'll give this a go tomorrow.
--
Russel.
=============================================================================
Dr Russel Winder Partner
xmpp: [email protected]
Concertant LLP t: +44 20 7585 2200, +44 20 7193 9203
41 Buckmaster Road, f: +44 8700 516 084 voip: sip:[email protected]
London SW11 1EN, UK m: +44 7770 465 077 skype: russel_winder
signature.asc
Description: This is a digitally signed message part
