-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy pathpytest.ini
More file actions
46 lines (38 loc) · 1.33 KB
/
pytest.ini
File metadata and controls
46 lines (38 loc) · 1.33 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
[pytest]
# Add src to path so tests can import tunacode without installing
pythonpath = src
# Test discovery patterns
python_files = test_*.py
python_classes = Test*
python_functions = test_*
# Test directories
testpaths = tests
# Asyncio configuration
asyncio_mode = auto
asyncio_default_fixture_loop_scope = function
# Output options
addopts =
-v
--strict-markers
--tb=short
--durations=10
--durations-min=0.5
-p randomly
--json-report
--json-report-file=.test_reports/latest.json
--json-report-indent=2
# Coverage configuration (use with: pytest --cov)
# Threshold enforced in CI via: pytest --cov --cov-fail-under=40
# Suppress OpenTelemetry deprecation warnings (transitive dep from opentelemetry/logfire)
filterwarnings =
ignore::DeprecationWarning:opentelemetry
ignore:You should use `Logger`:DeprecationWarning
ignore:You should use `LoggerProvider`:DeprecationWarning
ignore:You should use `ProxyLoggerProvider`:DeprecationWarning
# Custom markers
markers =
asyncio: marks tests as async (handled by pytest-asyncio)
slow: marks tests as slow running
hypothesis: property-based tests using hypothesis (may be slow),
integration: tests requiring real API access (skipped by default),
tmux: end-to-end tests that drive tunacode in a real tmux session (require tmux + API key)