forked from hardbyte/python-can
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
65 lines (50 loc) · 1.04 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
64
65
[tox]
[testenv]
deps =
pytest~=5.3
pytest-timeout~=1.3
pytest-cov~=2.8
coverage<5
codecov~=2.0
hypothesis~=4.56
pyserial~=3.0
commands =
pytest
recreate = True
[testenv:gh]
passenv =
CI
PYTHONPATH
[testenv:travis]
passenv =
CI
TRAVIS
TRAVIS_*
TEST_SOCKETCAN
commands_post =
codecov -X gcov
[testenv:appveyor]
passenv =
CI
APPVEYOR
APPVEYOR_*
extras = neovi
commands_post =
codecov -X gcov
[pytest]
testpaths = test
addopts = -v --timeout=300 --cov=can --cov-append --cov-report=term
[coverage:run]
# we could also use branch coverage
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