I was hoping for a failfast behavior for surefire as well. My reason is that we are running a set of functional tests that take a long time to execute (say 2 hours), we require all of them to succeed but only know at the end if it did. I wonder if this feature ever made it to surefire (can't see any argument like that on surefire's documentation). For us, it'd work if surefire would take mvn argument -ff (--fail-fast) into account (though as I understand it, is really meant for reactor builds only).
Kalle On Fri, Apr 27, 2007 at 2:32 PM, Barrie Treloar <[email protected]> wrote: > On 4/28/07, Si'mon <[email protected]> wrote: > >> >> When a JUnit test fails I would like Maven:surefire to exit and not run >> additional tests. Anyone know how to do this? It keeps going for some >> time >> and then stops but I want it to come to a screeching halt right then. >> > > As Wayne suggests this sounds reasonable, but what is your reasoning behind > it? > > It's most likely because running surefire-report:report re-runs the > lifecycle again, which is damn annoying. There is a patch which > creates surefire-report:report-only which only generates the reports, > you must have already run surefire before. > > I'm looking at putting a release of surefire-report together soonish > so that this patch can get included, at the moment you have to install > it locally yourself. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
