-
Notifications
You must be signed in to change notification settings - Fork 49
/
Copy pathtox.ini
47 lines (40 loc) · 1005 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
47
[tox]
distshare={homedir}/.tox/distshare
envlist=linters,py{38,39,310}-xdist,py{38,39,310}-pytest-latest,py{38,39,310}
skip_missing_interpreters = true
[testenv]
commands= py.test {posargs} tests --junitxml={envlogdir}/junit-{envname}.xml
deps =
-e.
-r{toxinidir}/requirements-testing.txt
passenv = DISPLAY
[testenv:linters]
basepython=python3.10
commands={[testenv]commands} pytest_splinter --black
[testenv:coveralls]
deps =
{[testenv]deps}
coveralls
commands=
coverage run --source=pytest_splinter -m pytest tests
coverage report -m
coveralls
[testenv:xdist]
deps =
{[testenv]deps}
pytest-xdist
commands=
py.test pytest_splinter tests -n1 -rfsxX \
--junitxml={envlogdir}/junit-{envname}.xml
[testenv:pytest-latest]
deps =
{[testenv]deps}
git+https://github.com/pytest-dev/py.git#egg=py
git+https://github.com/pytest-dev/pytest.git#egg=pytest
[pytest]
addopts = -vvl -r w
[gh-actions]
python =
3.8: py38
3.9: py39
3.10: py310