-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathpytest.ini
More file actions
64 lines (55 loc) · 1.27 KB
/
pytest.ini
File metadata and controls
64 lines (55 loc) · 1.27 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
[pytest]
# Pytest configuration for Home Assistant custom component testing
# Test discovery patterns
python_files = test_*.py
python_classes = Test*
python_functions = test_*
# Asyncio configuration (required for pytest-asyncio)
asyncio_mode = auto
asyncio_default_fixture_loop_scope = function
# Coverage options
[coverage:run]
source = custom_components.volvooncall_cn
omit =
*/proto/*
*/__pycache__/*
*/tests/*
[coverage:report]
# Require minimum 50% coverage
fail_under = 50
precision = 2
show_missing = true
exclude_lines =
pragma: no cover
def __repr__
raise AssertionError
raise NotImplementedError
if __name__ == .__main__.:
if TYPE_CHECKING:
@abstractmethod
# Test output options
addopts =
--strict-markers
--cov=custom_components.volvooncall_cn
--cov-report=term-missing
--cov-report=html
--cov-report=xml
-v
--tb=short
# Custom markers for different test types
markers =
unit: Unit tests (fast, isolated)
integration: Integration tests (may require external resources)
slow: Slow running tests
# Timeout for tests (prevent hanging)
timeout = 10
# Test paths
testpaths = tests
# Ignore paths
norecursedirs =
.git
.tox
dist
build
*.egg
custom_components/volvooncall_cn/proto