Quantcast
Viewing all articles
Browse latest Browse all 90

Maven Test

  • Don't run unit tests, run integration tests directly

    $ mvn test-compile failsafe:integration-test
  • Run a single integration test in multiple modules projects.

    $ mvn -am -pl :sub-module -Dit.test=MyIntegrationTest -DfailIfNoTests=false test-compile failsafe:integration-test
    • -am allows resolving dependencies using the working directory.
    • -pl :sub-module specifies the module
    • -DfailIfNoTests=false allows not failing in dependent modules.

Viewing all articles
Browse latest Browse all 90

Trending Articles