Add pytest options and ignore test source code coverage.

This commit is contained in:
William Ting 2016-04-30 23:05:53 -07:00
parent 7f9dde14f0
commit 2443de2655

View file

@ -6,12 +6,10 @@ envlist = py27,py33,py34,pypy,pypy3
[testenv] [testenv]
deps = deps =
-rrequirements-dev.txt -rrequirements-dev.txt
ipdb
ipython
passenv = HOME HOMEPATH PROGRAMDATA passenv = HOME HOMEPATH PROGRAMDATA
commands = commands =
coverage erase coverage erase
coverage run -m pytest -s -rxs -vv {posargs:tests} coverage run --source=pre_commit_hooks/ -m pytest -rxs --durations 10 {posargs:tests}
coverage report --show-missing --fail-under 100 coverage report --show-missing --fail-under 100
pre-commit install -f --install-hooks pre-commit install -f --install-hooks
pre-commit run --all-files pre-commit run --all-files