-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathtox.ini
36 lines (33 loc) · 781 Bytes
/
tox.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
[tox]
envlist =
coverage_setup
latest
old
coverage_report
skip_missing_interpreters = True
isolated_build = True
[testenv]
setenv =
DJANGO_SETTINGS_MODULE = tests.settings
deps =
pytest-django
pytest-cov
Django<3.3
django-debug-toolbar
old: Django==2.2.*
old: django-debug-toolbar==1.11.1
depends = coverage_setup
commands = python -m pytest --cov --cov-append --cov-report=
[testenv:coverage_setup]
skip_install = True
depends =
deps = coverage[toml]
commands = coverage erase
[testenv:coverage_report]
skip_install = True
parallel_show_output = True
deps = {[testenv:coverage_setup]deps}
depends = latest,old
commands =
coverage report --include="tests/*" --fail-under=100 -m
coverage report --omit="tests/*" --fail-under=50 -m