added pytest-cov

This commit is contained in:
Tobias Wellnitz, DH1TW 2018-01-28 12:42:14 +01:00
parent 2649d76762
commit 2d892cb85d
2 changed files with 2 additions and 1 deletions

View file

@ -20,7 +20,7 @@ install:
- pip install codecov - pip install codecov
# run tests # run tests
script: script:
- pytest - pytest --cov=pyhamtools
- cd docs - cd docs
# build the docs on 2.7 and 3.6 (sphinx requires 2.7 or >=3.4) # build the docs on 2.7 and 3.6 (sphinx requires 2.7 or >=3.4)
- if [[ $TRAVIS_PYTHON_VERSION == 2.7 ]]; then make html; fi - if [[ $TRAVIS_PYTHON_VERSION == 2.7 ]]; then make html; fi

View file

@ -1,3 +1,4 @@
pytest>=3.3.2 pytest>=3.3.2
pytest-blockage>=0.2.0 pytest-blockage>=0.2.0
pytest-localserver>=0.4.1 pytest-localserver>=0.4.1
pytest-cov>=2.5.1