mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-02-03 13:14:30 +03:00
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:
parent
0148a9f8da
commit
b23cdaff4c
|
@ -5,7 +5,7 @@ universal = 1
|
|||
license_file = LICENSE.md
|
||||
|
||||
[tool:pytest]
|
||||
addopts=--tb=short --strict
|
||||
addopts=--tb=short --strict -ra
|
||||
testspath = tests
|
||||
|
||||
[flake8]
|
||||
|
|
4
tox.ini
4
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
|
||||
|
|
Loading…
Reference in New Issue
Block a user