I have a project with several modules. When all tests pass, Maven test runs them all.
When tests fail in the first module, maven will not continue to the next projec
From the Maven Embedder documentation:
-fae,--fail-at-endOnly fail the build afterwards; allow all non-impacted builds to continue
-fn,--fail-neverNEVER fail the build, regardless of project result
So if you are testing one module than you are safe using -fae.
Otherwise, if you have multiple modules, and if you want all of them tested (even the ones that depend on the failing tests module), you should run mvn clean install -fn.
-fae will continue with the module that has a failing test (will run all other tests), but all modules that depend on it will be skipped.