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