Commit a085b98d authored by Yuke Liao's avatar Yuke Liao Committed by Commit Bot

[code coverage] Update per-cl coverage documentation

This CL updates per-cl coverage documentation with percentages.

Change-Id: Ib39834a06dfb03b48f4f3449223ebfce91c6a52a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1876730
Commit-Queue: Yuke Liao <liaoyuke@chromium.org>
Reviewed-by: default avatarNodir Turakulov <nodir@chromium.org>
Cr-Commit-Position: refs/heads/master@{#709223}
parent 84b3745c
...@@ -8,8 +8,17 @@ Chromium CLs can show a line-by-line breakdown of test coverage. **You can use ...@@ -8,8 +8,17 @@ Chromium CLs can show a line-by-line breakdown of test coverage. **You can use
it to ensure you only submit well-tested code**. it to ensure you only submit well-tested code**.
To see code coverage for a Chromium CL, **trigger a CQ dry run**, and once the To see code coverage for a Chromium CL, **trigger a CQ dry run**, and once the
builds finish and code coverage data is processed successfully, **look builds finish and code coverage data is processed successfully, **look at the
at the right column of the side by side diff view to see coverage information**: change view to see absolute and incremental code coverage percentages**:
![code_coverage_percentages]
Absolute coverage percentage is the percentage of lines covered by tests
out of **all the lines** in the file, while incremental coverage percentage only
accounts for **newly added or modified lines**.
To further dig into specific lines that are not covered by tests, **look at the
right column of the side by side diff view**:
![code_coverage_annotations] ![code_coverage_annotations]
...@@ -51,6 +60,7 @@ in Gerrit. ...@@ -51,6 +60,7 @@ in Gerrit.
[choose_tryjobs]: images/code_coverage_choose_tryjobs.png [choose_tryjobs]: images/code_coverage_choose_tryjobs.png
[linux_coverage_rel]: images/code_coverage_linux_coverage_rel.png [linux_coverage_rel]: images/code_coverage_linux_coverage_rel.png
[code_coverage_annotations]: images/code_coverage_annotations.png [code_coverage_annotations]: images/code_coverage_annotations.png
[code_coverage_percentages]: images/code_coverage_percentages.png
[file a bug]: https://bugs.chromium.org/p/chromium/issues/entry?components=Infra%3ETest%3ECodeCoverage [file a bug]: https://bugs.chromium.org/p/chromium/issues/entry?components=Infra%3ETest%3ECodeCoverage
[code-coverage group]: https://groups.google.com/a/chromium.org/forum/#!forum/code-coverage [code-coverage group]: https://groups.google.com/a/chromium.org/forum/#!forum/code-coverage
[code_coverage.md]: code_coverage.md [code_coverage.md]: code_coverage.md
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment