forked from allure-framework/allure-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtox.ini
More file actions
107 lines (78 loc) · 2.13 KB
/
tox.ini
File metadata and controls
107 lines (78 loc) · 2.13 KB
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
[tox]
envlist =
py{27,36,37}
xdist
integration
static_check
[testenv]
passenv = HOME
setenv = ALLURE_INDENT_OUTPUT=yep
deps =
pyhamcrest
mock
{distshare}/allure-python-commons-2*.zip
{distshare}/allure-python-commons-test-2*.zip
commands =
py.test --basetemp={envtmpdir}/tmp \
--alluredir={envtmpdir}/allure-results \
-W ignore::pytest.PytestExperimentalApiWarning \
-p pytester {posargs: ./test/acceptance}
[testenv:integration]
description = Test integration with pytest-flakes
passenv = HOME
basepython = python3.6
setenv = ALLURE_INDENT_OUTPUT=yep
deps =
pyhamcrest
pytest-flakes
pytest-rerunfailures
pytest-xdist
mock
{distshare}/allure-python-commons-2*.zip
{distshare}/allure-python-commons-test-2*.zip
commands =
py.test --basetemp={envtmpdir}/tmp \
--alluredir={envtmpdir}/allure-results \
-W ignore::pytest.PytestExperimentalApiWarning \
-p pytester {posargs: ./test/integration}
[testenv:xdist]
passenv = HOME
basepython = python3.7
deps =
pyhamcrest
pytest-xdist
mock
{distshare}/allure-python-commons-2*.zip
{distshare}/allure-python-commons-test-2*.zip
commands =
py.test --basetemp={envtmpdir}/tmp \
--alluredir={envtmpdir}/allure-results \
-W ignore::pytest.PytestExperimentalApiWarning \
-p pytester \
-n 3 {posargs: ./test/acceptance}
# Run tests without result checking. It is useful for:
# 1. Getting demo report: `tox -e demo`
# 2. Executing separate test:
# `tox -e demo -- -k test_single_feature_label` or
# `tox -e demo -- ./test/steps/`
[testenv:demo]
basepython = python3.5
passenv = HOME
whitelist_externals = rm
setenv = ALLURE_INDENT_OUTPUT=yep
commands=
rm -f {envtmpdir}/*.json
- py.test -v --alluredir={envtmpdir} {posargs: ./test/}
[testenv:static_check]
basepython = python3.7
skip_install = True
deps = flake8
; flake8-import-order
flake8-builtins
; flake8-quotes
commands =
flake8 src/ test/
[flake8]
max-line-length = 120
import-order-style = google
inline-quotes = "