Have you ever wanted to know if your CL has enough code coverage? You can see uncovered lines in Gerrit, which can help you figure out if your CL or the CL you're reviewing needs more/better tests.
To generate code coverage data for your CL, manually trigger the experimental coverage CQ builder: linux-coverage-rel:
Once the build finishes and code coverage data are processed successfully, look at the right column of the side by side diff view to see which lines are not covered:
For any breakage report and feature requests, please file a bug.
For questions and general discussions, please join code-coverage group.
We‘re still evaluating the stability of the code coverage pipeline, and once it’s proven to be stable, the experimental builder will be merged into one of the existing CQ builders, and at that time, the feature will be available by default.
There are several possible reasons:
Linuxplatform is supported.
Please refer to code_coverage.md for how code coverage works in Chromium in general, and specifically, for per-CL coverage in Gerrit, the clang_code_coverage_wrapper is used to compile and instrument ONLY the source files that are affected by the CL and a chromium-coverage Gerrit plugin is used to annotate uncovered lines in Gerrit.