Merge pull request #115 from python-escpos/feature/coverage-analysis

ADD coverage analysis (branch coverage)
This commit is contained in:
Patrick Kanzler 2016-03-25 20:53:11 +01:00
commit e355d2cbdf
3 changed files with 7 additions and 4 deletions

View File

@ -10,7 +10,7 @@ matrix:
- python: 3.5 - python: 3.5
env: TOXENV=py35 env: TOXENV=py35
before_install: before_install:
- pip install tox - pip install tox codecov
# command to run tests
script: script:
- tox - tox
- codecov

View File

@ -14,6 +14,10 @@ python-escpos - Python library to manipulate ESC/POS Printers
:target: https://landscape.io/github/python-escpos/python-escpos/master :target: https://landscape.io/github/python-escpos/python-escpos/master
:alt: Code Health :alt: Code Health
.. image:: https://codecov.io/github/python-escpos/python-escpos/coverage.svg?branch=master
:target: https://codecov.io/github/python-escpos/python-escpos?branch=master
:alt: Code Coverage
.. image:: https://readthedocs.org/projects/python-escpos/badge/?version=stable .. image:: https://readthedocs.org/projects/python-escpos/badge/?version=stable
:target: http://python-escpos.readthedocs.org/en/latest/?badge=stable :target: http://python-escpos.readthedocs.org/en/latest/?badge=stable
:alt: Documentation Status :alt: Documentation Status

View File

@ -4,5 +4,4 @@ envlist = py27, py34, py35
[testenv] [testenv]
deps = nose deps = nose
coverage coverage
commands = nosetests commands = nosetests --with-coverage --cover-erase --cover-branches
# TODO: implement code coverage analysis (and of course tests at first)