Skip to content

Commit

Permalink
tox/pytest: move posargs, use -ra (#6039)
Browse files Browse the repository at this point in the history
- 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.
  • Loading branch information
blueyed authored and carltongibson committed Jul 6, 2018
1 parent 0148a9f commit b23cdaf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ universal = 1
license_file = LICENSE.md

[tool:pytest]
addopts=--tb=short --strict
addopts=--tb=short --strict -ra
testspath = tests

[flake8]
Expand Down
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit b23cdaf

Please sign in to comment.