I can invoke mvn cobertura:cobertura
to instrument, run unit tests (using surefire
), and generate reports.
I can invoke mvn verify
to run unit tests and integration tests (using the failsafe
Maven plugin).
But how do I call Maven to instrument, run unit tests and integration tests, and generate reports? The answer to Running integration tests with Cobertura Maven plugin did not work for me, and also I would not want to call verify
with every Cobertura run, but only for nightly coverage.