Hi!

Am 06. Mär. 2024 schrieb Mantas Gridinas:

> (Maven 3.9.4)
> 
> Suppose I have failing unit tests configured via surefire plugin but I
> still want to run the integration tests configured via failsafe plugin. In
> default case maven stops running the lifecycle/goals when one of the
> previous ones fails. How do I prevent that? The fail at end flag seems to
> only continue building modules but does not continue with running
> particular goals on the failing module.

The surefire plugin allows to continue after test failures by enabling
the testFailureIgnore parameter:

mvn -Dmaven.test.failure.ignore verify

See
https://maven.apache.org/surefire/maven-surefire-plugin/test-mojo.html#testFailureIgnore
for details.

hth,
- martin

Attachment: pgp31RgalJpwv.pgp
Description: Digitale Signatur von OpenPGP

Reply via email to