-
Notifications
You must be signed in to change notification settings - Fork 2
/
tox.ini
46 lines (42 loc) · 899 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
37
38
39
40
41
42
43
44
45
46
[tox]
envlist =
flake8,
py37,
py38,
py39,
py310,
py311,
pypy3,
coverage,
minversion = 3.4
[testenv]
usedevelop = true
extras = test
allowlist_externals =
test
echo
deps=
pytest
pytest-cov
pytest-timeout
pytest-instafail
pytest-rerunfailures
# Prevent parallel runs by testing if the according variable is set:
commands=
echo "Parallel execution stops at the next line as the tests have to run sequentially:"
test -z {env:TOX_PARALLEL_ENV:}
py.test []
[testenv:coverage]
basepython = python3
deps =
{[testenv]deps}
pytest-cov
coverage
commands =
py.test --cov=src --cov-report=term-missing --cov-report=html []
[testenv:flake8]
basepython=python3
deps=flake8
commands=flake8 src setup.py --doctest
[pytest]
addopts = src -x --timeout=60 --instafail --reruns 2 --doctest-modules --doctest-glob="*.rst"