aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFélix Piédallu <felix@piedallu.me>2018-01-19 17:21:26 +0100
committerJussi Pakkanen <jpakkane@gmail.com>2018-01-30 06:35:03 +1100
commit5f3c282e6e48c6223882c15bba64cad27f5ab5e5 (patch)
treed3ae251238ab382f9a6641b40938562eb300de33
parentec5007364487da64545f383b5725ed5074109050 (diff)
downloadmeson-5f3c282e6e48c6223882c15bba64cad27f5ab5e5.zip
meson-5f3c282e6e48c6223882c15bba64cad27f5ab5e5.tar.gz
meson-5f3c282e6e48c6223882c15bba64cad27f5ab5e5.tar.bz2
Echo coverage report uris after generation. Fixes #2805.
-rw-r--r--mesonbuild/scripts/coverage.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/mesonbuild/scripts/coverage.py b/mesonbuild/scripts/coverage.py
index 25451d4..d1fad11 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):