coverage: Print summary after gcovr html generation

summary from stdout is often used by Automated builds to show build details

The --print-summary option was added to gcovr in v3.2, since html output
was added only in 3.1, limitting support to 3.2 won’t be a big deal.

--print-summary is not enabled for text/xml report generation as it will
result in meson not supporting any gcovr version less than 3.2.
pull/4579/head
Mohammed Sadiq 6 years ago committed by Jussi Pakkanen
parent d272f23dba
commit 41a98d0fdd
  1. 3
      mesonbuild/scripts/coverage.py

@ -107,13 +107,14 @@ def coverage(outputs, source_root, subproject_root, build_root, log_dir):
subprocess.check_call([gcovr_exe,
'--html',
'--html-details',
'--print-summary',
'-r', build_root,
'-e', subproject_root,
'-o', os.path.join(htmloutdir, 'index.html'),
])
outfiles.append(('Html', pathlib.Path(htmloutdir, 'index.html')))
elif outputs:
print('lcov/genhtml or gcovr >= 3.1 needed to generate Html coverage report')
print('lcov/genhtml or gcovr >= 3.2 needed to generate Html coverage report')
exitcode = 1
if not outputs and not outfiles:

Loading…
Cancel
Save