Echo coverage report uris after generation. Fixes #2805.

This commit is contained in:
Félix Piédallu 2018-01-19 17:21:26 +01:00 committed by Jussi Pakkanen
parent ec50073644
commit 5f3c282e6e
1 changed files with 10 additions and 1 deletions

View File

@ -14,7 +14,7 @@
from mesonbuild import environment
import sys, os, subprocess
import sys, os, subprocess, pathlib
def remove_dir_from_trace(lcov_command, covfile, dirname):
tmpfile = covfile + '.tmp'
@ -68,6 +68,15 @@ def coverage(source_root, build_root, log_dir):
'--show-details',
'--branch-coverage',
covinfo])
if gcovr_exe:
print('')
print('XML coverage report can be found at',
pathlib.Path(log_dir, 'coverage.xml').as_uri())
print('Text coverage report can be found at',
pathlib.Path(log_dir, 'coverage.txt').as_uri())
if lcov_exe and genhtml_exe:
print('Html coverage report can be found at',
pathlib.Path(htmloutdir, 'index.html').as_uri())
return 0
def run(args):