Michael Piefel
Michael Piefel

Reputation: 19958

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.

Upvotes: 6

Views: 3569

Answers (2)

Andriy Plokhotnyuk
Andriy Plokhotnyuk

Reputation: 7989

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

Upvotes: 1

Aquin
Aquin

Reputation: 36

Not sure if I fully understand the question, but I always do a mvn site ...

Upvotes: 0

Related Questions