From d7cd4891536081f4976b44b1cda1ca64b8c76e11 Mon Sep 17 00:00:00 2001 From: nir0s Date: Sun, 25 Sep 2016 19:31:25 +0300 Subject: [PATCH] Try coverage --- .coveragerc | 10 ++++++++++ tox.ini | 8 ++++++-- 2 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 .coveragerc diff --git a/.coveragerc b/.coveragerc new file mode 100644 index 0000000..93b7cd0 --- /dev/null +++ b/.coveragerc @@ -0,0 +1,10 @@ +[run] +branch = True +source = + distro.py + +[paths] +source = + distro.py + .tox/*/lib/python*/site-packages/distro.py + .tox/pypy/site-packages/distro.py \ No newline at end of file diff --git a/tox.ini b/tox.ini index f59c5f0..798bd74 100644 --- a/tox.ini +++ b/tox.ini @@ -24,7 +24,11 @@ deps = -rdev-requirements.txt codecov passenv = CI TRAVIS TRAVIS_* -commands=nosetests --with-cov --cov-report term-missing --cov distro tests -v +commands = + coverage run --parallel-mode -m nose --strict {posargs} + coverage combine + coverage report -m +# commands=nosetests --with-cov --cov-report term-missing --cov distro.py tests -v [testenv:py26] basepython = python2.6 @@ -41,7 +45,7 @@ basepython = python3.5 [testenv:pywin] deps = -rdev-requirements.txt -commands=nosetests --with-cov --cov-report term-missing --cov distro tests -v +commands=nosetests --with-cov --cov-report term-missing --cov distro.py tests -v basepython = {env:PYTHON:}\python.exe passenv=ProgramFiles APPVEYOR LOGNAME USER LNAME USERNAME HOME USERPROFILE