-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathtox.ini
40 lines (35 loc) · 1.26 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
[tox]
skipsdist = true
envlist = py37
[testenv]
passenv = DISPLAY PYTEST_ADDOPTS PYTEST SAUCELABS_API_KEY SAUCELABS_USERNAME \
JENKINS_URL JOB_NAME BUILD_NUMBER PYTEST_BASE_URL
deps = -rrequirements/tests.txt
# -variables : https://pypi.org/project/pytest-variables/
commands = pytest \
--verbose -r=a --driver=Firefox --tb=short \
--junit-xml=results/{envname}.xml \
--html=results/tests.html \
{posargs} --variables=variables.json
[testenv:flake8]
deps = -rrequirements/flake8.txt
commands = flake8 {posargs:.}
[flake8]
ignore = E501
[pytest]
# http://doc.pytest.org/en/latest/reference.html#confval-testpaths
testpaths = tests
# https://github.com/pytest-dev/pytest-base-url
base_url = https://aai-low-social-ldap-pwless.testrp.security.allizom.org
sensitive_url = https://prod.testrp.security.allizom.org
[testenv:serial]
passenv = DISPLAY PYTEST_ADDOPTS PYTEST SAUCELABS_API_KEY SAUCELABS_USERNAME \
JENKINS_URL JOB_NAME BUILD_NUMBER PYTEST_BASE_URL
deps = -rrequirements/tests.txt
# -variables : https://pypi.org/project/pytest-variables/
commands = pytest \
-p no:xdist -o log_cli=true \
--verbose -r=a --driver=Firefox --tb=short \
--junit-xml=results/{envname}.xml \
--html=results/tests.html \
{posargs} --variables=variables.json