Skip to content

Commit

Permalink
adds coverage tests
Browse files Browse the repository at this point in the history
  • Loading branch information
shawalli committed Apr 5, 2018
1 parent aa51ace commit 4e5fbe7
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
7 changes: 5 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,8 @@ python:
- "3.6"
- "pypy"
- "pypy3"
install: pip install tox-travis
script: tox
install:
- pip install tox-travis
- pip install python-coveralls
script: tox
after_success: coveralls
3 changes: 3 additions & 0 deletions test-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
attrs==17.4.0
coverage==4.5.1
more-itertools==4.1.0
pluggy==0.6.0
py==1.5.3
pytest==3.5.0
pytest-cov==2.5.1
six==1.11.0
3 changes: 2 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ envlist = py27,py34,py35,py36,pypy,pypy3
[testenv]
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands = pytest
commands = pytest --cov=src tests --cov-report term-missing
usedevelop = true

0 comments on commit 4e5fbe7

Please sign in to comment.