ci: generate detailed code coverage report via gcovr
Change-Id: I41022928b778acdbe4319a2808cf5b3db337a2fa
diff --git a/.jenkins.d/30-coverage.sh b/.jenkins.d/30-coverage.sh
index 7a6bea0..6a6db85 100755
--- a/.jenkins.d/30-coverage.sh
+++ b/.jenkins.d/30-coverage.sh
@@ -2,12 +2,16 @@
set -ex
if [[ $JOB_NAME == *"code-coverage" ]]; then
- # Generate an XML report (Cobertura format) using gcovr
- gcovr --object-directory=build \
- --output=build/coverage.xml \
- --exclude="$PWD/tests" \
- --root=. \
- --xml
+ # Generate an XML report (Cobertura format) and a detailed HTML report using gcovr
+ # Note: trailing slashes are important in the paths below. Do not remove them!
+ gcovr -j$WAF_JOBS \
+ --object-directory build \
+ --filter src/ \
+ --exclude-throw-branches \
+ --exclude-unreachable-branches \
+ --print-summary \
+ --html-details build/gcovr/ \
+ --xml build/coverage.xml
# Generate a detailed HTML report using lcov
lcov --quiet \