coverage: pass .lcovrc config file to genhtml

The .lcovrc file can contain several directives for genhtml, mostly
pertaining the visualisation of the generated HTML report. Passing the
config file to genhtml allows the user to customize their report.

Fixes #12863
This commit is contained in:
Esther Dalhuisen 2024-02-15 18:08:19 +01:00 committed by Eli Schwartz
parent c80ece2410
commit abdb3afd73
1 changed files with 1 additions and 1 deletions

View File

@ -145,7 +145,7 @@ def coverage(outputs: T.List[str], source_root: str, subproject_root: str, build
'--legend',
'--show-details',
'--branch-coverage',
covinfo])
covinfo] + lcov_config)
outfiles.append(('Html', pathlib.Path(htmloutdir, 'index.html')))
elif gcovr_exe and mesonlib.version_compare(gcovr_version, '>=3.3'):
htmloutdir = os.path.join(log_dir, 'coveragereport')