Merge "Skip coverage reports when running pytest directly"
This commit is contained in:
commit
e0dc81c5a3
4
tox.ini
4
tox.ini
@ -3,7 +3,7 @@ envlist = py37,py27,pep8
|
|||||||
minversion = 3.18.0
|
minversion = 3.18.0
|
||||||
|
|
||||||
[pytest]
|
[pytest]
|
||||||
addopts = --verbose --cov=swift --cov-branch --cov-report=html:cover --cov-report term
|
addopts = --verbose
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
usedevelop = True
|
usedevelop = True
|
||||||
@ -16,7 +16,7 @@ deps =
|
|||||||
commands =
|
commands =
|
||||||
find {envdir} ( -type f -o -type l ) -name "*.py[co]" -delete
|
find {envdir} ( -type f -o -type l ) -name "*.py[co]" -delete
|
||||||
find {envdir} -type d -name "__pycache__" -delete
|
find {envdir} -type d -name "__pycache__" -delete
|
||||||
bash -ec "pytest {posargs:test/unit} || pytest --last-failed {posargs:test/unit}"
|
bash -ec "pytest --cov=swift --cov-branch --cov-report=html:cover --cov-report term {posargs:test/unit} || pytest --last-failed {posargs:test/unit}"
|
||||||
allowlist_externals =
|
allowlist_externals =
|
||||||
bash
|
bash
|
||||||
find
|
find
|
||||||
|
Loading…
Reference in New Issue
Block a user