I work on a multi module project. We have UT and IT in each module.
We use failsafe plugin to execute integration tests.
We need to be able to execute a single integration test from command line (it works fine in eclipse).
When i issue
mvn verify -rf cmil-document -Dtest=IDocumentFacadeIT#changeDocumentTest
the test is executed - I see output log in system console.
At first I wasn't able to find the failsafe report. Later I checked surefire reports folder and I found the integration test report in it.
Well it is not a big deal to open it from the displaced location, but still my question is: Do I miss the proper way to run a single integration test or maven/one of the plugins is somehow consfused?
-Dtest
is for surefire, whereas for failsafe you should use -Dit.test
, see the User Property for test