Skip to content

Commit

Permalink
Specify options in .coveragerc rather than on the command line.
Browse files Browse the repository at this point in the history
  • Loading branch information
gnuworldman committed May 5, 2015
1 parent 541129d commit 889d4e2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions .coveragerc
@@ -1,3 +1,7 @@
[report]
show_missing = true

[run]
source = src
branch = true
omit = src/pyneric/future/*
6 changes: 3 additions & 3 deletions Makefile
Expand Up @@ -9,12 +9,12 @@ flake:
flake8 src

test: flake
PYTHONPATH=src:tests coverage run --branch --module unittest discover --pattern 'test_*.py'
PYTHONPATH=src:tests coverage run --append --branch tests/django_test_app/manage.py test django_test_app --noinput
PYTHONPATH=src:tests coverage run --module unittest discover --pattern 'test_*.py'
PYTHONPATH=src:tests coverage run --append tests/django_test_app/manage.py test django_test_app --noinput
PYTHONPATH=src python -m doctest docs/examples.rst

coverage: test
coverage report --show-missing --fail-under=100
coverage report --fail-under=100

coverage_html: test
coverage html
Expand Down

0 comments on commit 889d4e2

Please sign in to comment.