failsafe-test
clean, compile and run unit tests:
mvn clean compile test
run integration tests in suite:
mvn failsafe:integration-test -Dit.test=ITSuite failsafe:verify
run other integration tests:
mvn -DexcludedGroups="co.speedar.integration.ITInSuite,co.speedar.integration.OtherCategory" failsafe:integration-test failsafe:verify
run other category tests:
mvn -DexcludedGroups="co.speedar.integration.ITInSuite,co.speedar.integration.ITNotInSuite" failsafe:integration-test failsafe:verify
install:
mvn install -Dmaven.test.skip=true
reference:
how-to-split-junit-tests-in-a-continuous-integration-environment
categories
failsafe inclusion-exclusion
run-junit-suite-using-maven-command