Cobertura for integration tests in Maven

I can call mvn cobertura:cobertura on the tool, run unit tests (using surefire ) and generate reports.

I can call mvn verify to run unit tests and integration tests (using the failsafe Maven plugin).

But how can I call Maven a tool, do unit tests and integration tests, and also create reports? The answer to Performing integration tests with the Cobertura Maven plugin did not help me, nor would I like to call verify with every Cobertura launch, but only for nightly coverage.

+6
source share
2 answers

You can try Jacoco and get on-the-fly appliances with a more flexible configuration for collection and reporting

+1
source

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

0
source

Source: https://habr.com/ru/post/901227/


All Articles