From f65e11202c357069ad779ac34725c4e461abb41a Mon Sep 17 00:00:00 2001 From: mpenning Date: Tue, 10 Oct 2023 09:40:23 -0500 Subject: [PATCH] Add more pytest flags --- tox.ini | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/tox.ini b/tox.ini index 1224c960..6b9dca03 100644 --- a/tox.ini +++ b/tox.ini @@ -18,17 +18,18 @@ envlist = #constrain_package_deps = true #use_frozen_constraints = true #basepython=python +changedir = tests deps = -r{toxinidir}/requirements.txt -r{toxinidir}/requirements-dev.txt setenv = PYTHONPATH = {toxinidir}:{toxinidir}/related commands = - py311: {envpython} -m pytest - py310: {envpython} -m pytest - py39: {envpython} -m pytest - py38: {envpython} -m pytest - pypy310: {envpython} -m pytest + py311: {envpython} -m pytest -r=fE --exitfirst --durations=5 --strict-config --cache-clear --capture=sys --show-capture=all --tb=short --strict-config --color=yes --code-highlight=yes --showlocals "$test_filename" + py310: {envpython} -m pytest -r=fE --exitfirst --durations=5 --strict-config --cache-clear --capture=sys --show-capture=all --tb=short --strict-config --color=yes --code-highlight=yes --showlocals "$test_filename" + py39: {envpython} -m pytest -r=fE --exitfirst --durations=5 --strict-config --cache-clear --capture=sys --show-capture=all --tb=short --strict-config --color=yes --code-highlight=yes --showlocals "$test_filename" + py38: {envpython} -m pytest -r=fE --exitfirst --durations=5 --strict-config --cache-clear --capture=sys --show-capture=all --tb=short --strict-config --color=yes --code-highlight=yes --showlocals "$test_filename" + pypy310: {envpython} -m pytest -r=fE --exitfirst --durations=5 --strict-config --cache-clear --capture=sys --show-capture=all --tb=short --strict-config --color=yes --code-highlight=yes --showlocals "$test_filename" [testenv:style] deps = pre-commit