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.
This commit is contained in:
Daniel Hahler 2018-07-06 10:34:11 +02:00 committed by Carlton Gibson
parent 0148a9f8da
commit b23cdaff4c
2 changed files with 3 additions and 3 deletions

View File

@ -5,7 +5,7 @@ universal = 1
license_file = LICENSE.md
[tool:pytest]
addopts=--tb=short --strict
addopts=--tb=short --strict -ra
testspath = tests
[flake8]

View File

@ -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