Skip to content

Commit 32cc34a

Browse files
author
Gonzalo Diaz
committed
[CONFIG] lcov, complete lcovrc file.
1 parent 89bc4b4 commit 32cc34a

File tree

2 files changed

+62
-1
lines changed

2 files changed

+62
-1
lines changed

.lcovrc

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,45 @@ genhtml_function_coverage = 1
6262
# Adjust test names if non-zero
6363
#geninfo_adjust_testname = 0
6464

65+
# Location of the gcov tool
66+
#geninfo_gcov_tool = gcov
67+
68+
# Adjust test names if non-zero
69+
#geninfo_adjust_testname = 0
70+
6571
# Calculate a checksum for each line if non-zero
6672
geninfo_checksum = 0
6773

6874
# Enable libtool compatibility mode if non-zero
6975
geninfo_compat_libtool = 0
7076

77+
# Specify whether to capture coverage data for external source
78+
# files
79+
#geninfo_external = 1
80+
81+
# Use gcov's --all-blocks option if non-zero
82+
#geninfo_gcov_all_blocks = 1
83+
84+
# Specify compatiblity modes (same as --compat option
85+
# of geninfo)
86+
#geninfo_compat = libtool=on, hammer=auto, split_crc=auto
87+
88+
# Adjust path to source files by removing or changing path
89+
# components that match the specified pattern (Perl regular
90+
# expression format)
91+
#geninfo_adjust_src_path = /tmp/build => /usr/src
92+
93+
# Specify if geninfo should try to automatically determine
94+
# the base-directory when collecting coverage data.
95+
geninfo_auto_base = 1
96+
97+
# Use gcov intermediate format? Valid values are 0, 1, auto
98+
geninfo_intermediate = auto
99+
100+
# Specify whether to exclude exception branches from branch coverage.
101+
# Default is 0.
102+
geninfo_no_exception_branch = 1
103+
71104
# Directory containing gcov kernel files
72105
lcov_gcov_dir = /proc/gcov
73106

@@ -82,3 +115,31 @@ lcov_rmmod_tool = /sbin/rmmod
82115

83116
# Location for temporary directories
84117
lcov_tmp_dir = /tmp
118+
119+
# Show full paths during list operation if non-zero
120+
lcov_list_full_path = 1
121+
122+
# Specify the maximum width for list output. This value is
123+
# ignored when lcov_list_full_path is non-zero.
124+
lcov_list_width = 80
125+
126+
# Specify the maximum percentage of file names which may be
127+
# truncated when choosing a directory prefix in list output.
128+
# This value is ignored when lcov_list_full_path is non-zero.
129+
lcov_list_truncate_max = 20
130+
131+
# Specify if function coverage data should be collected and
132+
# processed.
133+
lcov_function_coverage = 1
134+
135+
# Specify if branch coverage data should be collected and
136+
# processed.
137+
lcov_branch_coverage = 1
138+
139+
# Ask LCOV to return non-zero exit code if line coverage is
140+
# below specified threshold percentage.
141+
; lcov_fail_under_lines = 97.5
142+
143+
# Specify JSON module to use, or choose best available if
144+
# set to auto
145+
lcov_json_module = auto

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ BUILDKIT_PROGRESS=plain
2424
DOCKER_COMPOSE=docker compose
2525

2626
# TOOLS
27-
COVERAGE_TOOL_OPTS=--config-file .lcovrc --rc branch_coverage=1
27+
COVERAGE_TOOL_OPTS=--config-file .lcovrc
2828

2929
# C++ specific
3030
SRC_DIR = src

0 commit comments

Comments
 (0)