-
Notifications
You must be signed in to change notification settings - Fork 1
/
tox.ini
63 lines (45 loc) · 1.07 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
[tox]
envlist = lint,pytest,pytestbdd,mypy
skipsdist = True
[testenv:lint]
deps =
-e .[lint,test]
commands =
flake8 iotics setup.py tests
pylint --rcfile .pylint.rc iotics setup.py
pylint --rcfile .pylint.rc tests --disable=redefined-outer-name
[testenv:mypy]
deps =
-e .[lint]
commands =
mypy --config-file setup.cfg iotics
[testenv:pytest]
deps =
-e .[test]
setenv =
PYTHONDONTWRITEBYTECODE = 1
commands =
pytest \
--tb=short \
--junitxml=test-unit-results.xml \
--cov=iotics --cov-report=term --cov-report=xml --cov-report=html \
tests/unit {posargs}
[testenv:pytestbdd]
deps =
-e .[test]
setenv =
PYTHONDONTWRITEBYTECODE = 1
commands =
pytest \
--tb=short \
--junitxml=test-bdd-results.xml \
--cov=iotics --cov-report=term --cov-report=xml --cov-report=html \
tests/behaviour {posargs}
[pytest]
# see https://docs.pytest.org/en/latest/deprecations.html#junit-family-default-value-change-to-xunit2
junit_family = xunit2
log_cli = 1
[coverage:run]
branch = True
[report]
show_missing = True