Support JaCoCo coverage reports for coverage visualization
Release Notes
You can now use JaCoCo coverage reports for coverage calculation. The feature is available as Beta (https://docs.gitlab.com/ee/ci/testing/test_coverage_visualization/jacoco.html). Please leave any feedback on #479804.
Problem to solve
As a Java Developer i want to use the test coverage visualization for merge requests feature when using JaCoCo for coverage calculation.
The coverage information is gathered by the artifact reports feature. It currently supports coverage reports in cobertura.xml
format.
Intended users
User experience goal
Use the nice code coverage visualization feature without having to use outdated tool chains that lack support for modern language versions.
Proposal
It would be helpful, if there was a artifacts:reports:jacoco
setting, for gathering coverage information from JaCoCo reports.
Further details
Cobertura is currently not well supported. For example cobertura or the cobertura-maven-plugin lacks proper Java8+ support.
- https://github.com/cobertura/cobertura/issues/381
- https://github.com/mojohaus/cobertura-maven-plugin/issues/21
Also the last release of cobertura (2.7) was in 2015:
Permissions and Security
-
Add expected impact to members with no access (0) -
Add expected impact to Guest (10) members -
Add expected impact to Reporter (20) members -
Add expected impact to Developer (30) members -
Add expected impact to Maintainer (40) members -
Add expected impact to Owner (50) members
Documentation
This docs would need to reflect the proposed feature
- https://docs.gitlab.com/ee/user/project/merge_requests/test_coverage_visualization.html
- https://docs.gitlab.com/ee/ci/pipelines/job_artifacts.html#artifactsreportscobertura