mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2024-11-22 01:26:57 +03:00
Improve error reporting by pytest inside of Tox
This commit is contained in:
parent
d04b128e0f
commit
f8d2eb11a9
|
@ -1,4 +1,5 @@
|
|||
[pytest]
|
||||
addopts = -x --tb=short
|
||||
python_paths = .
|
||||
norecursedirs = .tox .git */migrations/* */static/* docs venv */{{cookiecutter.project_slug}}/*
|
||||
markers =
|
||||
|
|
6
tox.ini
6
tox.ini
|
@ -4,15 +4,15 @@ envlist = py36,flake8,black,black-template
|
|||
|
||||
[testenv]
|
||||
deps = -rrequirements.txt
|
||||
commands = pytest -n 3 -m "not flake8" -m "not black" {posargs:./tests}
|
||||
commands = pytest -m "not flake8" -m "not black" {posargs:./tests}
|
||||
|
||||
[testenv:flake8]
|
||||
deps = -rrequirements.txt
|
||||
commands = pytest -n 3 -m flake8 {posargs:./tests}
|
||||
commands = pytest -m flake8 {posargs:./tests}
|
||||
|
||||
[testenv:black]
|
||||
deps = -rrequirements.txt
|
||||
commands = pytest -n 3 -m black {posargs:./tests}
|
||||
commands = pytest -m black {posargs:./tests}
|
||||
|
||||
[testenv:black-template]
|
||||
deps = black
|
||||
|
|
Loading…
Reference in New Issue
Block a user