-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathtox.ini
39 lines (34 loc) · 927 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
[tox]
skip_missing_interpreters = True
envlist = style, pylint, py3
[testenv]
deps = respx
pytest-cov
pytest-asyncio==0.21.1
commands =
pytest -v --cov=api4jenkins tests/unit \
-o junit_family=xunit2 \
--asyncio-mode=auto \
--cov-report term \
--cov-report html:tests/unit/htmlcov \
--cov-report xml:tests/unit/coverage.xml
[testenv:pylint]
deps = pylint
commands =
pylint -E api4jenkins
[testenv:style]
deps = pycodestyle
commands =
pycodestyle --show-source --show-pep8 \
--ignore=E501,F401,E128,E402,E731,F821 api4jenkins
[testenv:integration]
deps = pytest-cov
pytest-asyncio==0.21.1
pyyaml
passenv = JENKINS_*
commands =
pytest -v --cov=api4jenkins tests/integration \
--asyncio-mode=auto \
--cov-report term \
--cov-report html:tests/integration/htmlcov \
--cov-report xml:tests/integration/coverage.xml