forked from cantools/cantools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
43 lines (34 loc) · 847 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
40
41
42
43
[tox]
envlist = py
isolated_build = true
[testenv]
deps =
pytest==7.2.*
pytest-cov==4.0.*
coverage==7.0.*
parameterized==0.8.*
extras =
plot
commands =
pytest {posargs} --cov=cantools --cov-config=tox.ini --cov-report=xml --cov-report=term
[testenv:gh]
passenv =
GITHUB_*
PY_COLORS
[pytest]
testpaths = tests
addopts = -v --color=yes
[coverage:run]
relative_files = True
branch = False
[coverage:report]
# two digits after decimal point
precision = 3
show_missing = True
exclude_lines =
# Have to re-enable the standard pragma, see https://coverage.readthedocs.io/en/coverage-4.5.1a/config.html#syntax
pragma: no cover
# Don't complain if non-runnable code isn't run:
if __name__ == .__main__.:
# Don't complain if tests don't hit defensive assertion code:
raise NotImplementedError