-
Notifications
You must be signed in to change notification settings - Fork 509
/
tox.ini
90 lines (79 loc) · 2.82 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
[testenv:tests_splinter]
deps = -rrequirements/test.txt
commands =
pytest --ignore-flaky {posargs} tests/tests_splinter
[testenv:tests_django]
extras = django
deps = -rrequirements/test.txt
commands =
pytest --ignore-flaky {posargs} --browser=django tests/test_all_drivers tests/test_all_lxml_drivers tests/tests_django
[testenv:tests_flask]
extras = flask
deps = -rrequirements/test.txt
commands =
pytest --ignore-flaky {posargs} --browser=flask tests/test_all_drivers tests/test_all_lxml_drivers tests/tests_flask
[testenv:tests_zopetestbrowser]
extras = zope.testbrowser
deps = -rrequirements/test.txt
setenv =
ZOPE = True
commands =
pip install -e .[zope.testbrowser]
pytest --ignore-flaky {posargs} --browser=zope.testbrowser tests/test_all_drivers tests/test_all_lxml_drivers tests/tests_zope_testbrowser
[testenv:tests_selenium_firefox]
extras = selenium
deps =
-rrequirements/test.txt
commands =
pytest --ignore-flaky {posargs} --browser=firefox tests/test_all_drivers tests/tests_webdriver tests/tests_webdriver_local tests/tests_firefox_webdriver
pytest --ignore-flaky {posargs} --browser=firefox --webdriver-fullscreen True tests/test_all_drivers tests/tests_webdriver tests/tests_webdriver_local tests/tests_firefox_webdriver
[testenv:tests_selenium_chrome]
extras = selenium
deps =
-rrequirements/test.txt
commands =
pytest --ignore-flaky {posargs} --browser=chrome tests/test_all_drivers tests/tests_webdriver tests/tests_webdriver_local
pytest --ignore-flaky {posargs} --browser=chrome --webdriver-fullscreen True tests/test_all_drivers tests/tests_webdriver tests/tests_webdriver_local
[testenv:tests_selenium_edge]
extras = selenium
deps =
-rrequirements\test_windows.txt
passenv =
EDGEWEBDRIVER
commands =
pytest --ignore-flaky {posargs} --browser=edge tests/test_all_drivers tests/tests_webdriver tests/tests_webdriver_local
[testenv:tests_selenium_remote_chrome]
extras = selenium
deps =
-rrequirements/test.txt
commands =
pytest --ignore-flaky {posargs} --browser=remote --webdriver-remote-name=chrome tests/test_all_drivers tests/tests_webdriver
[testenv:tests_selenium_remote_firefox]
extras = selenium
deps =
-rrequirements/test.txt
commands =
pytest --ignore-flaky {posargs} --browser=remote --webdriver-remote-name=firefox tests/test_all_drivers tests/tests_webdriver
[testenv:tests_selenium_remote_safari]
extras = selenium
setenv =
SAFARI = True
deps =
-rrequirements/test.txt
commands =
pytest --ignore-flaky {posargs} --browser=remote --webdriver-remote-name=safari tests/test_all_drivers tests/tests_webdriver
[testenv:build_docs]
allowlist_externals = make
deps =
-rrequirements/doc.txt
changedir = docs/
commands =
make clean
make {posargs}
[testenv:lint]
skip_install =
true
deps =
pre-commit
commands =
pre-commit run --all-files --show-diff-on-failure