Options for running integration tests & unit tests seperatly
andreoss opened this issue · 2 comments
andreoss commented
For CI purposes, it's preferable to run ITs as a separate task.
For example:
mvn verify -PonlyITs # skips unit tests
mvn verify -PonlyUTs # skips integration tests
Only ability to skip UTs is needed at this point, but having both is good for consistency
yegor256 commented
@andreoss I believe you can do it with -DskipTests
and -Dfailsafe.skip
(or something similar)
andreoss commented
@yegor256 The problem is that -DskipTests
skips both, and -DskipITs
skips only ITs.
https://stackoverflow.com/questions/46712510/how-to-skip-surefire-tests-but-run-failsafe-tests