File tree 2 files changed +25
-18
lines changed
2 files changed +25
-18
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ DNF_PKGS=(
30
30
FORMULAE=(boost openssl pkgconf)
31
31
case $JOB_NAME in
32
32
* code-coverage)
33
- APT_PKGS+=(lcov)
33
+ APT_PKGS+=(lcov libjson-xs-perl )
34
34
;;
35
35
* Docs)
36
36
APT_PKGS+=(doxygen graphviz)
Original file line number Diff line number Diff line change @@ -8,29 +8,36 @@ export UV_NO_MANAGED_PYTHON=1
8
8
9
9
set -x
10
10
11
- # Generate an XML report (Cobertura format) and a detailed HTML report using gcovr
11
+ # Generate a detailed HTML report and an XML report in Cobertura format using gcovr
12
12
# Note: trailing slashes are important in the paths below. Do not remove them!
13
- uvx gcovr@5.2 \
14
- --object-directory build \
13
+ uvx --from ' git+https://github.com/ gcovr/gcovr@99b82e7 ' gcovr \
14
+ --decisions \
15
15
--filter src/ \
16
16
--exclude-throw-branches \
17
17
--exclude-unreachable-branches \
18
18
--cobertura build/coverage.xml \
19
19
--html-details build/gcovr/ \
20
- --print-summary
20
+ --txt-summary \
21
+ build
21
22
22
23
# Generate a detailed HTML report using lcov
23
- lcov --quiet \
24
- --capture \
25
- --directory . \
26
- --exclude " $PWD /tests/*" \
27
- --no-external \
28
- --rc lcov_branch_coverage=1 \
29
- --output-file build/coverage.info
24
+ lcov \
25
+ --quiet \
26
+ --capture \
27
+ --directory . \
28
+ --include " $PWD /src/*" \
29
+ --ignore-errors count,inconsistent \
30
+ --branch-coverage \
31
+ --rc no_exception_branch=1 \
32
+ --output-file build/coverage.info
30
33
31
- genhtml --branch-coverage \
32
- --demangle-cpp \
33
- --legend \
34
- --output-directory build/lcov \
35
- --title " ndncert unit tests" \
36
- build/coverage.info
34
+ genhtml \
35
+ --quiet \
36
+ --branch-coverage \
37
+ --demangle-cpp \
38
+ --legend \
39
+ --missed \
40
+ --show-proportion \
41
+ --title " ndncert unit tests" \
42
+ --output-directory build/lcov \
43
+ build/coverage.info
You can’t perform that action at this time.
0 commit comments