0

I'm testing my multi-module project and I would like to continue testing even if some tests fails.

    <packaging>pom</packaging>
    <name>My Project</name>

    <modules>
        <module>project-core</module>
        <module>project-api</module>
    </modules>

For example: If some test from CORE fails, is it possible keep with tests of API until the end?

Neil
  • 322
  • 1
  • 2
  • 13
  • 1
    possible duplicate of [Making Maven run all tests, even when some fail](http://stackoverflow.com/questions/4174696/making-maven-run-all-tests-even-when-some-fail) – Jonathan Oct 23 '14 at 16:28
  • Have you tried to use `mvn clean package --fail-at-end` ? – khmarbaise Oct 23 '14 at 17:27
  • Thanks @khmarbaise, Maven do some more test but also breaks and not do all of them. – Neil Oct 27 '14 at 15:41
  • Thanks @Jonathan I'm checking the link and I will try `--fail-never` right now! – Neil Oct 27 '14 at 15:43
  • It didn't work for me. Only I found how to skip all tests: `-DskipTests` but it is not completely that I want. But I solved commenting the tests that are failing. – Neil Jul 15 '15 at 16:23

1 Answers1

0

The solution that I could find was: mvn clean install -DskipTests and then comment the failing tests.

Neil
  • 322
  • 1
  • 2
  • 13