From 5f3c282e6e48c6223882c15bba64cad27f5ab5e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Fri, 19 Jan 2018 17:21:26 +0100 Subject: [PATCH] Echo coverage report uris after generation. Fixes #2805. --- mesonbuild/scripts/coverage.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/mesonbuild/scripts/coverage.py b/mesonbuild/scripts/coverage.py index 25451d454..d1fad119e 100644 --- a/mesonbuild/scripts/coverage.py +++ b/mesonbuild/scripts/coverage.py @@ -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):