When I run mvn clean verify I want to run integration tests as part of the integration-test phase AND skip the unit tests in the test phase.
I know that running clean verify will also run the tests in the test phase since the phase comes before it.
Then when I run mvn test I want to be able to run those unit tests through the surefire plugin.
I tried entering in the command line -DskipTests but this skips ALL tests.
Then I found out entering -DskipITs skips the integration tests.
How can I skip the unit tests?
Thanks
EDIT: Also please do not ask why I am skipping unit tests before running integration tests. I know what I'm doing.
Aucun commentaire:
Enregistrer un commentaire