-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtox.ini
35 lines (29 loc) · 826 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
[pytest]
addopts = -vvl -r w
[tox]
envlist =
{py38,py39,py310,py311,py312}-standard,
{py38,py39,py310,py311,py312}-xdist,
lint,
skip_missing_interpreters = true
[base]
deps = -rrequirements/testing.txt
[testenv:{py38,py39,py310,py311,py312}-standard]
usedevelop=True
passenv = DISPLAY,XAUTHORITY
deps = {[base]deps}
commands = pytest {posargs} tests --durations=10 --splinter-headless --cov=pytest_splinter4 --cov-append --cov-report=xml
[testenv:lint]
skip_install = true
deps =
-r{toxinidir}/requirements/lint.txt
commands =
flake8 pytest_splinter4
[testenv:{py38,py39,py310,py311,py312}-xdist]
usedevelop=True
passenv = DISPLAY,XAUTHORITY
deps =
{[base]deps}
pytest-xdist
commands =
pytest tests {posargs} -n1 -rfsxXP --splinter-headless --cov=pytest_splinter4 --cov-append --cov-report=xml