-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpytest.ini
More file actions
55 lines (47 loc) · 1.04 KB
/
pytest.ini
File metadata and controls
55 lines (47 loc) · 1.04 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
[pytest]
# Pytest configuration for IoTFlow Connectivity Layer
# Test discovery patterns
python_files = test_*.py *_test.py
python_classes = Test*
python_functions = test_*
# Test paths
testpaths = tests
# Output options
addopts =
-v
--tb=short
--disable-warnings
--color=yes
--cov=src
--cov-report=html
--cov-report=term-missing
--cov-report=xml
# Coverage options
[coverage:run]
source = src
omit =
*/tests/*
*/test_*.py
*/__pycache__/*
*/venv/*
*/.venv/*
[coverage:report]
precision = 2
show_missing = True
skip_covered = False
# Test markers
markers =
unit: Unit tests (fast, isolated)
integration: Integration tests (database, external services)
e2e: End-to-end tests (full workflows)
slow: Slow running tests
mqtt: Tests requiring MQTT broker
iotdb: Tests requiring IoTDB
redis: Tests requiring Redis
# Logging
log_cli = true
log_cli_level = INFO
log_cli_format = %(asctime)s [%(levelname)8s] %(message)s
log_cli_date_format = %Y-%m-%d %H:%M:%S
# Timeout
timeout = 300