-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpytest.ini
More file actions
69 lines (59 loc) · 1.65 KB
/
pytest.ini
File metadata and controls
69 lines (59 loc) · 1.65 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
[tool:pytest]
# Pytest configuration file
# Test discovery
python_files = test_*.py *_test.py
python_classes = Test*
python_functions = test_*
# Test directories
testpaths = tests backend/tests
# Minimum version
minversion = 6.0
# Add current directory to Python path
addopts =
--strict-markers
--strict-config
--verbose
--tb=short
--cov=backend
--cov=streamlit_app
--cov-report=term-missing
--cov-report=html:htmlcov
--cov-report=xml:coverage.xml
--cov-fail-under=60
--durations=10
--color=yes
-p no:warnings
# Markers
markers =
slow: marks tests as slow (deselect with '-m "not slow"')
integration: marks tests as integration tests
unit: marks tests as unit tests
api: marks tests as API tests
frontend: marks tests as frontend tests
security: marks tests as security tests
performance: marks tests as performance tests
smoke: marks tests as smoke tests
regression: marks tests as regression tests
# Filtering
filterwarnings =
ignore::UserWarning
ignore::DeprecationWarning
ignore::PendingDeprecationWarning
ignore:.*unclosed.*:ResourceWarning
ignore:Use 'content=<...>' to upload raw bytes/text content.:DeprecationWarning
# Logging
log_cli = true
log_cli_level = INFO
log_cli_format = %(asctime)s [%(levelname)8s] %(name)s: %(message)s
log_cli_date_format = %Y-%m-%d %H:%M:%S
# Timeout for tests (in seconds)
timeout = 300
# Parallel execution
# Uncomment to enable parallel test execution
# addopts = -n auto
# Test environment variables
env =
TESTING = true
API_BASE_URL = http://localhost:8080
REDIS_URL = redis://localhost:6379/1
LOG_LEVEL = DEBUG