Nuclos JaCoCo: code coverage, offline weaving, jacoco-maven-plugin, jacoco.exec, coverage profile, mvn verify, AspectJ. |
Language: Deutsch · English
Code coverage with JaCoCo – offline weaving, coverage profile and report generation.
On this page |
Code coverage of the Nuclos build and the integration tests is measured with JaCoCo (from v4.2024.13).
jacoco-maven-plugin after javac but before the AspectJ bytecode manipulation (runtime online weaving did not work for Nuclos due to AspectJ/Spring weaving).$NUCLOS_GIT_ROOT/target/jacoco.exec.Activation via the Maven profile coverage, e.g. for the Tomcat server integration tests:
mvn clean verify -Dlocale=de_DE -Dtest.webclient.skip=true -P coverage,test,test-tomcat |
Create a report per module:
mvn jacoco:report@coverage-report |
The Sonar code analysis automatically uses the JaCoCo reports if present. |