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.
You can try Jacoco and got on fly instrumentation with more flexible configuration for gathering of coverage and reporting
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With