summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorTim Burke <tim.burke@gmail.com>2023-01-17 12:05:02 -0800
committerTim Burke <tim.burke@gmail.com>2023-01-17 12:05:34 -0800
commit51a944850f943b814b91936dc5e507ef08da62b8 (patch)
treebf8c8418afd3498eb84e5ae93290fffe70f2a450 /tox.ini
parentd22a75405297a148d7dc1e2c8d703678df065f63 (diff)
downloadswift-51a944850f943b814b91936dc5e507ef08da62b8.tar.gz
Skip coverage reports when running pytest directly
Keep them when running via tox, though. Related-Change: https://review.opendev.org/c/openstack/swift/+/851099 Change-Id: I1ddd1dc8a3b35a588a8ecc5667dae4da33340712
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini4
1 files changed, 2 insertions, 2 deletions
diff --git a/tox.ini b/tox.ini
index 6ce934b76..aa84159bd 100644
--- a/tox.ini
+++ b/tox.ini
@@ -3,7 +3,7 @@ envlist = py37,py27,pep8
minversion = 3.18.0
[pytest]
-addopts = --verbose --cov=swift --cov-branch --cov-report=html:cover --cov-report term
+addopts = --verbose
[testenv]
usedevelop = True
@@ -16,7 +16,7 @@ deps =
commands =
find {envdir} ( -type f -o -type l ) -name "*.py[co]" -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 =
bash
find