jcabi/jcabi-parent

Options for running integration tests & unit tests seperatly

andreoss opened this issue · 2 comments

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

@andreoss I believe you can do it with -DskipTests and -Dfailsafe.skip (or something similar)

@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