aboutsummaryrefslogtreecommitdiff
path: root/run_unittests.py
diff options
context:
space:
mode:
authorDaniel Mensinger <daniel@mensinger-ka.de>2021-06-07 13:00:59 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2021-06-22 21:05:11 +0300
commit765aff5a42d9b7568bbd89f711d52c2da346e91c (patch)
tree11e3b60053d4f5061f3b970dccc4a9b91e313770 /run_unittests.py
parentedfe24178d86450a8184bd139e03c5cdcad91100 (diff)
downloadmeson-765aff5a42d9b7568bbd89f711d52c2da346e91c.zip
meson-765aff5a42d9b7568bbd89f711d52c2da346e91c.tar.gz
meson-765aff5a42d9b7568bbd89f711d52c2da346e91c.tar.bz2
coverage: Enable coverage reports
Diffstat (limited to 'run_unittests.py')
-rwxr-xr-xrun_unittests.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/run_unittests.py b/run_unittests.py
index b55ba96..13149ce 100755
--- a/run_unittests.py
+++ b/run_unittests.py
@@ -10302,6 +10302,13 @@ def main():
pytest_args += ['--color=yes']
pytest_args += ['./run_unittests.py']
pytest_args += convert_args(sys.argv[1:])
+ # Always disable pytest-cov because we use a custom setup
+ try:
+ import pytest_cov # noqa: F401
+ print('Disabling pytest-cov')
+ pytest_args += ['-p' 'no:cov']
+ except ImportError:
+ pass
return subprocess.run(python_command + ['-m', 'pytest'] + pytest_args).returncode
except ImportError:
print('pytest-xdist not found, using unittest instead')