-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpytest.ini
More file actions
111 lines (99 loc) · 2.72 KB
/
Copy pathpytest.ini
File metadata and controls
111 lines (99 loc) · 2.72 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
99
100
101
102
103
104
105
106
107
108
109
110
111
[pytest]
# Pytest configuration for Kublai Testing Suite
# Test discovery patterns
python_files = test_*.py *_test.py
python_classes = Test* *Tests
python_functions = test_*
# Test paths
testpaths = tests
# Minimum version
minversion = 7.0
# Default command line options
addopts =
# Verbose output
-v
# Show local variables in tracebacks
--showlocals
# Show summary of all test outcomes
-ra
# Strict markers (fail on unknown markers)
--strict-markers
# Coverage configuration
--cov=openclaw_memory
--cov=tools.multi_goal_orchestration
--cov=tools.delegation_protocol
--cov=tools.failover_monitor
--cov=tools.notion_integration
--cov=tools.backend_collaboration
--cov=tools.background_synthesis
--cov=tools.file_consistency
--cov=tools.meta_learning
--cov=tools.reflection_memory
--cov=tools.security.privacy_boundary
--cov=tools.security.anonymization
--cov=tools.security.encryption
--cov=tools.security.tokenization
--cov=tools.security.access_control
--cov=tools.security.injection_prevention
--cov-report=term-missing
--cov-report=html:htmlcov
--cov-report=xml:coverage.xml
--cov-fail-under=80
# Warnings
-W error
-W ignore::DeprecationWarning
# Asyncio mode
--asyncio-mode=auto
# Custom markers
markers =
unit: Unit tests (fast, isolated)
integration: Integration tests (require external dependencies)
slow: Slow-running tests (may take >1 second)
security: Security tests (PII, injection, etc.)
performance: Performance tests (load, scalability)
chaos: Chaos engineering tests (failure injection)
asyncio: Async tests
# Logging configuration
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
log_file = tests/pytest.log
log_file_level = DEBUG
log_file_format = %(asctime)s [%(levelname)8s] %(name)s: %(message)s
log_file_date_format = %Y-%m-%d %H:%M:%S
# Coverage configuration
[coverage:run]
source = .
omit =
tests/*
*/tests/*
*/__pycache__/*
*/site-packages/*
*/dist-packages/*
setup.py
*/.venv/*
*/venv/*
[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:
@abstractmethod
[coverage:html]
directory = htmlcov
[coverage:xml]
output = coverage.xml
# Asyncio configuration
asyncio_mode = auto
# pytest-random-order configuration
# Ensures tests can run in any order to catch ordering dependencies
# Install with: pip install pytest-random-order
random_order_bucket = global
random_order_seed = 42