maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stephen Connolly <stephen.alan.conno...@gmail.com>
Subject Re: Ability to run all tests in all modules, and fail if ANY test fails.
Date Wed, 03 Aug 2016 08:45:32 GMT
Kristian,

Well that's going to bomb out each failing module at the `test` phase in
the lifecycle... which would ordinarily be OK, but most people have abused
the lifecycle and will require the build to at least `package` in all
modules... what you really want for this use case is something like
failsafe:verify only for surefire and perhaps may even need to bind that to
a phase after `install`

But it's probably better than what he's been tryinh

On 3 August 2016 at 08:56, Kristian Rosenvold <krosenvold@apache.org> wrote:

> -fae does not cut it ?
>
> 3. aug. 2016 00.45 skrev "Kevin Burton" <burton@spinn3r.com>:
>
> > I have a COMPLEX multi module build.
> >
> > Like 250 sub-modules.
> >
> > If I do a big refactor the build stops after testing say 20 modules,
> then I
> > have to fix the build again, then it might get through 5 more modules, I
> > have to keep repeating this process.
> >
> > What I want to do is to run tests on ALL modules and then show me which
> > fail AT THE END.
> >
> > I also want to the build to FAIL at the end.
> >
> > There is -fn , but this cause the build to SUCCEED with failures and a
> zero
> > (success) exit code.
> >
> > Is there a way I can make it run ALL tests , across ALL modules, and then
> > fail if ANY of the tests failed?
> >
> > Right now our CI system won't support maven failing with a zero exit
> code.
> >
> > --
> >
> > We’re hiring if you know of any awesome Java Devops or Linux Operations
> > Engineers!
> >
> > Founder/CEO Spinn3r.com
> > Location: *San Francisco, CA*
> > blog: http://burtonator.wordpress.com
> > … or check out my Google+ profile
> > <https://plus.google.com/102718274791889610666/posts>
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message