-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpytest.ini
More file actions
59 lines (53 loc) · 1.83 KB
/
pytest.ini
File metadata and controls
59 lines (53 loc) · 1.83 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
[pytest]
# Test discovery and execution
testpaths = tests
python_files = test_*.py *_test.py
python_classes = Test*
python_functions = test_*
# Markers for test categorization
markers =
unit: Unit tests for individual components
integration: Integration tests across multiple components
slow: Tests that take more than 1 second
network: Tests that require network access
gui: Tests that test GUI components
regression: Regression tests for previously fixed bugs
smoke: Smoke tests for critical functionality
performance: Performance benchmark tests
property: Property-based tests
flaky: Tests that are known to be flaky
skip_file_isolation: Skip global file isolation fixture (for tests that test file path logic)
audio: Tests that play real audio (music/sound effects) - skip by default, run with --audio or --full
# Coverage settings
addopts =
--strict-markers
--strict-config
--verbose
--tb=short
--cov=.
--cov-report=term-missing:skip-covered
--cov-report=html:htmlcov
--cov-report=xml:coverage.xml
--cov-config=.coveragerc
--cov-fail-under=70
--durations=10
--maxfail=3
-n auto
# Parallel execution enabled: auto-detects CPU cores for optimal speed
# Logging configuration
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
# Warning filters
filterwarnings =
ignore::UserWarning
ignore::DeprecationWarning
ignore::PendingDeprecationWarning
# SQLite connections use context managers but Python's sqlite3 context manager
# handles transactions, not connection lifecycle - gc finds them on shutdown
ignore:unclosed database:ResourceWarning
# Test timeout (for hanging tests)
timeout = 300
# Minimum Python version
minversion = 3.8