Reputation: 19958
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.
Upvotes: 6
Views: 3569
Reputation: 7989
You can try Jacoco and got on fly instrumentation with more flexible configuration for gathering of coverage and reporting
Upvotes: 1
Reputation: 36
Not sure if I fully understand the question, but I always do a mvn site
...
Upvotes: 0