From b23cdaff4ccdddc68913ed31a7bfb5f0113a388a Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Fri, 6 Jul 2018 10:34:11 +0200 Subject: [PATCH] tox/pytest: move posargs, use -ra (#6039) - tox: move {posargs} to the end, so that it can override previous entries, e.g. `-ra` when `-rw` was used. - pytest: add `-ra` to addopts: it is good to see a summary of skipped and failed tests at the end. --- setup.cfg | 2 +- tox.ini | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/setup.cfg b/setup.cfg index 75a1e9db0..f7af6b429 100644 --- a/setup.cfg +++ b/setup.cfg @@ -5,7 +5,7 @@ universal = 1 license_file = LICENSE.md [tool:pytest] -addopts=--tb=short --strict +addopts=--tb=short --strict -ra testspath = tests [flake8] diff --git a/tox.ini b/tox.ini index dcd44f161..f3fe2f396 100644 --- a/tox.ini +++ b/tox.ini @@ -16,7 +16,7 @@ DJANGO = master: djangomaster [testenv] -commands = ./runtests.py --fast {posargs} --coverage -rw +commands = ./runtests.py --fast --coverage {posargs} envdir = {toxworkdir}/venvs/{envname} setenv = PYTHONDONTWRITEBYTECODE=1 @@ -37,7 +37,7 @@ deps = -rrequirements/requirements-testing.txt [testenv:dist] -commands = ./runtests.py --fast {posargs} --no-pkgroot --staticfiles -rw +commands = ./runtests.py --fast --no-pkgroot --staticfiles {posargs} deps = django -rrequirements/requirements-testing.txt