Code coverage analysis is handled by Jacoco and coverage reports are published to Codecov.

Code coverage analysis

The repository is configured to report code coverage using Jacoco. A test coverage report can be generated by running the jacocoTestReport Gradle task:

./gradlew jacocoTestReport

Coverage reports are generated per module, capturing coverage data from unit tests. An XML report is created at <module>/build/reports/jacoco/test/jacocoTestReport.xml.

Settings for code coverage are configured in the Creek coverage build convention, which can be customised as needed.

Code coverage publishing

The repository is configured to publish code coverage to Codecov automatically as part of the CI GitHub workflow.

The CODECOV_TOKEN is configured as an organisation-wide secret in GitHub, so no additional setup is needed for new repositories in the creek-service organisation.

Updated: