new directory format doesn't work easily with pyargs according to http://doc.pytest.org/en/latest/goodpractices.html#tests-as-part-of-application-code

This commit is contained in:
Erica Portnoy 2019-11-13 16:20:38 -08:00
parent 933d2c9bb6
commit 24ebf0e078

View file

@ -47,8 +47,8 @@ def cover(package):
.format(pkg_dir)))
return
subprocess.check_call([sys.executable, '-m', 'pytest', '--pyargs',
'--cov', pkg_dir, '--cov-append', '--cov-report=', package])
subprocess.check_call([sys.executable, '-m', 'pytest',
'--cov', pkg_dir, '--cov-append', '--cov-report=', pkg_dir])
subprocess.check_call([
sys.executable, '-m', 'coverage', 'report', '--fail-under', str(threshold), '--include',
'{0}/*'.format(pkg_dir), '--show-missing'])