From d6f93713ae8c8e0db0bccd510e982e9e255ff22a Mon Sep 17 00:00:00 2001 From: Michał Górny Date: Fri, 15 May 2020 22:47:23 +0200 Subject: tox: Switch to pytest-cov, coverage runner is broken MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- tox.ini | 21 +++++---------------- 1 file changed, 5 insertions(+), 16 deletions(-) (limited to 'tox.ini') diff --git a/tox.ini b/tox.ini index af044b6..0611fdd 100644 --- a/tox.ini +++ b/tox.ini @@ -1,16 +1,14 @@ [tox] -envlist = begin,py27,py34,py35,py36,py37,py38,pypy,pypy3,incompatible-lzma,end +envlist = qa,py27,py34,py35,py36,py37,py38,pypy,pypy3,incompatible-lzma skip_missing_interpreters = True # we operate on sources anyway skipsdist = True -[testenv:begin] +[testenv:qa] deps = - coverage pyflakes commands = - coverage erase - pyflakes gemato tests + pyflakes {posargs:gemato tests} [testenv:incompatible-lzma] basepython = python2.7 @@ -19,6 +17,7 @@ basepython = python2.7 deps = coverage pytest + pytest-cov pytest-xdist py27,py34,py35,pypy,pypy3,incompatible-lzma: pyblake2 py27,py34,py35,pypy: pysha3 @@ -26,17 +25,7 @@ deps = py27,pypy: bz2file incompatible-lzma: pyliblzma commands = - coverage run --concurrency=multiprocessing -p -m pytest -vv -n auto {posargs} - -[testenv:end] -deps = - coverage - wheel -commands = - coverage combine - coverage html - coverage report - python setup.py sdist bdist_wheel + pytest -vv --cov=gemato --cov-config=.coveragerc -n auto {posargs} [testenv:upload] deps = -- cgit v1.2.3