-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpytest.ini
More file actions
98 lines (84 loc) · 2.21 KB
/
Copy pathpytest.ini
File metadata and controls
98 lines (84 loc) · 2.21 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
[pytest]
# Pytest Configuration for Multi-Agent System Testing
# Test discovery patterns
python_files = test_*.py
python_classes = Test*
python_functions = test_*
# Test directories
testpaths = tests
# Minimum Python version
minversion = 3.9
# Plugins
asyncio_mode = auto
# Output options
addopts =
# Verbose output
-v
# Show summary of all test outcomes
--tb=short
# Show local variables in tracebacks
-l
# Show extra test summary info
-ra
# Coverage options
--cov=multiagent
--cov-report=term-missing
--cov-report=html:reports/coverage
--cov-report=xml:reports/coverage.xml
# Strict markers
--strict-markers
# Show warnings
-W default
# Capture output
--capture=no
# Parallel execution (use -n auto for automatic)
# -n auto
# Markers for test categorization
markers =
integration: Integration tests (run with -m integration)
unit: Unit tests (run with -m unit)
load: Load and performance tests (run with -m load)
security: Security tests (run with -m security)
slow: Slow tests (run with -m slow)
smoke: Smoke tests for quick validation (run with -m smoke)
api: API endpoint tests (run with -m api)
websocket: WebSocket tests (run with -m websocket)
database: Database tests (run with -m database)
redis: Redis cache tests (run with -m redis)
# Console output
console_output_style = progress
# Logging
log_cli = true
log_cli_level = INFO
log_cli_format = %(asctime)s [%(levelname)s] %(message)s
log_cli_date_format = %Y-%m-%d %H:%M:%S
log_file = reports/pytest.log
log_file_level = DEBUG
log_file_format = %(asctime)s [%(levelname)s] %(name)s: %(message)s
log_file_date_format = %Y-%m-%d %H:%M:%S
# Timeout for tests (in seconds)
timeout = 300
# Fail on warnings (optional, uncomment to enable)
# filterwarnings = error
# Coverage options
[coverage:run]
source = multiagent
omit =
*/tests/*
*/test_*.py
*/__pycache__/*
*/migrations/*
*/venv/*
*/env/*
[coverage:report]
precision = 2
show_missing = True
skip_covered = False
exclude_lines =
pragma: no cover
def __repr__
raise AssertionError
raise NotImplementedError
if __name__ == .__main__.:
if TYPE_CHECKING:
@abstract