diff --git a/.travis.yml b/.travis.yml index d5c9d52..6d057c3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -25,4 +25,5 @@ env: install: pip install -U tox script: tox -e ${TOXENV} after_success: - - bash <(curl -s https://codecov.io/bash) + - pip install codecov + - codecov -e TOXENV TRAVIS_OS_NAME diff --git a/requirements_dev.txt b/requirements_dev.txt index cdca018..32638ef 100644 --- a/requirements_dev.txt +++ b/requirements_dev.txt @@ -16,3 +16,5 @@ pylint-common==0.2.2 fluff==0.1.1 pylint-mccabe==0.1.3 pylint-runner==0.3 +pytest-cov +pytest-mock==1.5.0 diff --git a/tox.ini b/tox.ini index 0eeebe4..4db01f3 100644 --- a/tox.ini +++ b/tox.ini @@ -16,7 +16,7 @@ deps = -r{toxinidir}/requirements_dev.txt commands = pip install -U pip - sudo {envpython} -m pytest --basetemp={envtmpdir} + sudo {envpython} -m pytest --cov=libvirt_provider --cov-report=term --cov-report=html --basetemp={envtmpdir} [testenv:pylint] # Does not run by default for the time being.