-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpytest.ini
More file actions
78 lines (65 loc) · 2.3 KB
/
pytest.ini
File metadata and controls
78 lines (65 loc) · 2.3 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
[pytest]
minversion = 7.0
testpaths = tests
python_files = test_*.py
python_classes = Test*
python_functions = test_*
# ====================================================================
# Pytest Configuration
# ====================================================================
# Enable detailed output, coverage reporting, and limited failures
addopts =
-v
--tb=short
--disable-warnings
--cov=src
--cov-report=term-missing
--cov-report=html
--cov-report=xml
--maxfail=5
--durations=10
# ====================================================================
# Custom Test Markers
# ====================================================================
markers =
slow: marks tests as slow
integration: marks integration tests
unit: marks unit tests
performance: marks performance tests
security: marks security-related tests
api: marks API endpoint tests
ui: marks Streamlit UI component tests
model: marks ML model tests
database: marks database-related tests
external: marks external service tests
e2e: marks end-to-end Playwright browser tests
smoke: marks lightweight functional sanity tests
# ====================================================================
# Logging and Async Behavior
# ====================================================================
log_cli = true
log_cli_level = INFO
asyncio_mode = auto
# ====================================================================
# Warning Filters
# ====================================================================
filterwarnings =
ignore::UserWarning
ignore::DeprecationWarning
ignore::PendingDeprecationWarning
ignore:missing ScriptRunContext
ignore:Session state does not function when running a script without `streamlit run`
# ====================================================================
# Environment Variables for Test Stability
# ====================================================================
env =
PYTHONWARNINGS=ignore
STREAMLIT_HEADLESS=true
STREAMLIT_TEST_MODE=true
TESTING=true
# ====================================================================
# Playwright Integration Defaults
# ====================================================================
[tool:pytest]
playwright_browser = chromium
playwright_headless = true