summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2014-12-05 18:42:44 -0800
committerAlex Gaynor <alex.gaynor@gmail.com>2014-12-05 18:42:44 -0800
commit613b067b315dea1bd185e39afbc01512a5bf6d7b (patch)
treefe624bd5429f72c325550f91378882f5aa95be5e
parentdad8bed5696616d672c4f5e07977e231e87093c0 (diff)
parent3aaea256a0e73b6f2c585edf53fce52a15b49322 (diff)
downloadpy-bcrypt-git-613b067b315dea1bd185e39afbc01512a5bf6d7b.tar.gz
Merge pull request #22 from dstufft/coverage
Enable coverage testing and require 100% coverage
-rw-r--r--.coveragerc5
-rw-r--r--tox.ini4
2 files changed, 8 insertions, 1 deletions
diff --git a/.coveragerc b/.coveragerc
new file mode 100644
index 0000000..1db160f
--- /dev/null
+++ b/.coveragerc
@@ -0,0 +1,5 @@
+[run]
+branch = True
+source =
+ bcrypt
+ tests/
diff --git a/tox.ini b/tox.ini
index 6602901..0143891 100644
--- a/tox.ini
+++ b/tox.ini
@@ -4,10 +4,12 @@ envlist = py26,py27,pypy,py32,py33,py34,pep8,py3pep8
[testenv]
# If you add a new dep here you probably need to add it in setup.py as well
deps =
+ coverage
mock
pytest
commands =
- py.test --strict {posargs}
+ coverage run -m pytest --strict {posargs}
+ coverage report -m --fail-under 100
[testenv:pep8]
deps =