I know that this probably is a classic question, because there suggested answers on Stack Overflow (and maybe also somewhere here in this mailing list), but I did not found anything satisfying the following criteria:
1. Run all Surefire tests, if compilation succeeds, also those of dependent modules, even if there are tests with failurer or errors. (We leave Failsafe out of the picture for now for simplicity's sake, but basically the same would apply to Failsafe tests for modules which can be compiled and packaged, despite failing Surefire tests.) 2. Fail the multi-module build in the end for all modules with failing tests. I know there is '-fae', but it skips modules depending on ones with test failures. I know there is '-fn', but it falsely makes the whole build pass. I know that the Maven build lifecycle is based on module dependencies and that dependent modules usually should not be built, if a dependency fails to build. But OTOH, the same build would pass with '-DskipTests', and the requirement that artifacts be compiled and packaged and dependent modules built, because those artifacts can in fact be compiled and packaged, makes practical sense. Basically, the user wants test failures reported correctly, but still make sure that as many tests as possible are being run. Is there any way to achieve that? -- Alexander Kriegisch https://scrum-master.de --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org