Merge pull request #9 from dennissiemensma/code-coverage

Code coverage (Tox, Travis & Codecov.io)
This commit is contained in:
Nigel Dokter 2016-11-27 21:01:27 +01:00 committed by GitHub
commit bbea9de445
4 changed files with 15 additions and 2 deletions

2
.coveragerc Normal file
View File

@ -0,0 +1,2 @@
[run]
branch = True

3
.gitignore vendored
View File

@ -3,3 +3,6 @@
.tox
.cache
*.egg-info
/.project
/.pydevproject
/.coverage

View File

@ -1,10 +1,17 @@
language: python
python:
- 2.7
- 3.4
- 3.5
install: pip install tox-travis
install: pip install tox-travis codecov
script: tox
after_success:
- codecov
matrix:
allow_failures:
- python: 2.7

View File

@ -4,12 +4,13 @@ envlist = py34,py35
[testenv]
deps=
pytest
pytest-cov
pylama
pytest-asyncio
pytest-catchlog
pytest-mock
commands=
py.test test {posargs}
py.test --cov=dsmr_parser test {posargs}
pylama dsmr_parser test
[pylama:pylint]