Skip to content
This repository has been archived by the owner on Mar 6, 2020. It is now read-only.

Commit

Permalink
Move coverage fail_under to command line option instead of .coveragerc
Browse files Browse the repository at this point in the history
pytest-cov randomly ignores stuff in .coveragerc; it doesn't ignore this,
but it seems cleaner to use the pytest-cov command line option anyhow.
  • Loading branch information
havocp committed May 11, 2016
1 parent b322ec3 commit 612c824
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion .coveragerc
Expand Up @@ -2,5 +2,4 @@
omit = */test/*,*/windows_cmdline.py

[report]
fail_under=100
precision=2
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -92,7 +92,7 @@ def initialize_options(self):
# adding it by default.
# To see stdout "live" instead of capturing it, use -s.
coverage_args = ['--cov-config', os.path.join(ROOT, ".coveragerc"), '--cov=anaconda_project',
'--cov-report=term-missing', '--cov-report=html']
'--cov-report=term-missing', '--cov-report=html', '--cov-fail-under=100']
if PY2:
# xdist appears to lock up the test suite with python
# 2, maybe due to an interaction with coverage
Expand Down

0 comments on commit 612c824

Please sign in to comment.