-
Notifications
You must be signed in to change notification settings - Fork 8
/
tox.ini
53 lines (46 loc) · 1.55 KB
/
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
48
49
50
51
52
53
[pytest]
markers =
skip_if_browser
[flake8]
ignore = D100,D101,D104,D107,D205,D400,D401,D412
per-file-ignores =
tests/*:D102,D103
[coverage:paths]
source =
stere/
*/.tox/*/lib/python*/site-packages/stere
# For more information about tox, see https://tox.readthedocs.io/en/latest/
[tox]
envlist =
{py38,py39,py310,py311}-stere,
{py38,py39,py310,py311}-splinter,
{py38,py39,py310,py311}-appium,
flake8
# Tests for basic Stere config
[testenv:{py38, py39, py310, py311}-stere]
package=wheel
deps = -rrequirements/tests.txt
commands =
py.test -s -vv {posargs} --cov={envsitepackagesdir}/stere --cov-append tests/config
py.test -s -vv {posargs} --cov={envsitepackagesdir}/stere --cov-append tests/stere
# Tests for splinter implementation
[testenv:{py38, py39, py310, py311}-splinter]
package=wheel
passenv = USE_SAUCE_LABS,GITHUB_RUN_ID
deps = -rrequirements/tests.txt
commands =
py.test -s -vv -n 4 {posargs} --splinter-remote-name=firefox --cov={envsitepackagesdir}/stere --cov-append tests/splinter
py.test -s -vv -n 4 {posargs} --splinter-remote-name=chrome --cov={envsitepackagesdir}/stere --cov-append tests/splinter
# Tests for appium implementation
[testenv:{py38, py39, py310, py311}-appium]
package=wheel
passenv = USE_SAUCE_LABS,GITHUB_RUN_ID
deps = -rrequirements/tests.txt
commands =
py.test -s -vv {posargs} --browser-name=ios --cov={envsitepackagesdir}/stere --cov-append tests/appium
# Lint code style
[testenv:lint]
skip_install = true
deps = -rrequirements/lint.txt
changedir = .
commands = flake8 stere tests scripts