-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpytest.ini
More file actions
61 lines (55 loc) · 1.4 KB
/
pytest.ini
File metadata and controls
61 lines (55 loc) · 1.4 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
# UAP Backend Testing Configuration
[tool:pytest]
testpaths = backend/tests
python_files = test_*.py
python_classes = Test*
python_functions = test_*
addopts =
--strict-markers
--strict-config
--verbose
--tb=short
--cov=backend
--cov-report=html
--cov-report=term-missing
--cov-fail-under=80
--asyncio-mode=auto
--disable-warnings
markers =
unit: Unit tests
integration: Integration tests
performance: Performance tests
websocket: WebSocket tests
agent: Agent-related tests
orchestrator: Orchestrator tests
slow: Slow running tests
api: API endpoint tests
# Performance test thresholds (from plan.md requirements)
performance_thresholds =
agent_response_time_p95 = 2.0 # seconds
ui_load_time_tti = 1.0 # seconds
websocket_connection_stability = 99.9 # percentage
concurrent_websocket_sessions = 1000
monthly_uptime = 99.9 # percentage
# Test data directories
test_data_dir = tests/data
fixtures_dir = tests/fixtures
# Async test configuration - using auto mode
asyncio_mode = auto
asyncio_default_fixture_loop_scope = function
# Coverage configuration
[coverage:run]
source = backend
omit =
*/tests/*
*/test_*
*/__init__.py
*/venv/*
*/virtualenv/*
[coverage:report]
exclude_lines =
pragma: no cover
def __repr__
raise AssertionError
raise NotImplementedError
if __name__ == .__main__.: