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 .tox
.cache .cache
*.egg-info *.egg-info
/.project
/.pydevproject
/.coverage

View File

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

View File

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