summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAl Semjonovs <asemjonovs@google.com>2022-01-13 12:10:09 -0700
committerCommit Bot <commit-bot@chromium.org>2022-01-19 20:23:20 +0000
commit683d9e35b5a9c20991451416a5eb2ba5314614a2 (patch)
tree9cfb462feda4f452f7cc0e4275599dc2776c75de
parent02aef7346a64b59366ef1c7dc1976e1e511df583 (diff)
downloadchrome-ec-683d9e35b5a9c20991451416a5eb2ba5314614a2.tar.gz
zephyr: Add details for generating code coverage
Add details for generating code coverage BRANCH=none BUG=b:201602829 TEST=none Signed-off-by: Al Semjonovs <asemjonovs@google.com> Change-Id: I6273f998daba811fd8f404cadbc4c41a585d678d Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3387813 Reviewed-by: Yuval Peress <peress@google.com> Commit-Queue: Yuval Peress <peress@google.com>
-rw-r--r--docs/code_coverage.md7
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/code_coverage.md b/docs/code_coverage.md
index ec8053ca93..cddc7b671d 100644
--- a/docs/code_coverage.md
+++ b/docs/code_coverage.md
@@ -48,3 +48,10 @@ selected in `Kconfig.board`.
The coverage report top-level page is
`build/ztest-coverage/coverage_rpt/index.html`.
+
+For manual coverage report you can run:
+`zmake configure --test --coverage <PATH>`
+
+Example:
+`zmake configure --test --coverage zephyr/test/drivers/`
+`genhtml -q -o build/ztest-coverage/coverage_rpt/ build/zephyr/test-drivers/output/zephyr.info`