Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cobertura coverage for integration tests in Maven

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.

like image 965
Michael Piefel Avatar asked Nov 10 '11 17:11

Michael Piefel


1 Answers

You can try Jacoco and got on fly instrumentation with more flexible configuration for gathering of coverage and reporting

like image 181
Andriy Plokhotnyuk Avatar answered Oct 01 '22 21:10

Andriy Plokhotnyuk