diff options
author | Daniel Mensinger <daniel@mensinger-ka.de> | 2021-06-07 13:00:59 +0200 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2021-06-22 21:05:11 +0300 |
commit | 765aff5a42d9b7568bbd89f711d52c2da346e91c (patch) | |
tree | 11e3b60053d4f5061f3b970dccc4a9b91e313770 /run_unittests.py | |
parent | edfe24178d86450a8184bd139e03c5cdcad91100 (diff) | |
download | meson-765aff5a42d9b7568bbd89f711d52c2da346e91c.zip meson-765aff5a42d9b7568bbd89f711d52c2da346e91c.tar.gz meson-765aff5a42d9b7568bbd89f711d52c2da346e91c.tar.bz2 |
coverage: Enable coverage reports
Diffstat (limited to 'run_unittests.py')
-rwxr-xr-x | run_unittests.py | 7 |
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') |