Getting coverage reports:
- Start by getting the coverage report from
cobertura
by running the following command:mvn cobertura:cobertura -Dcobertura.report.format=xml
- Then, extract the file
target/site/cobertura/coverage.xml
and name itcobertura.xml
. You can add it to the root of your project. - Lastly, send the reports to Codacy using the following command:
bash <(curl -Ls https://coverage.codacy.com/get.sh)