-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpytest.ini
More file actions
81 lines (70 loc) · 2.06 KB
/
pytest.ini
File metadata and controls
81 lines (70 loc) · 2.06 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
79
80
81
[pytest]
# Additional pytest configuration for performance optimization
# Test execution profiles
# Fast mode: pytest -m "not slow" --no-cov
# Coverage mode: pytest --cov=mcp_vultr
# Parallel mode: pytest -n auto
# Error focus: pytest -m error_handling --tb=long
minversion = 7.0
testpaths = tests
python_files = test_*.py *_test.py
python_classes = Test*
python_functions = test_*
# Default options for balanced performance
addopts =
--strict-markers
--strict-config
--tb=short
--maxfail=5
--timeout=30
--timeout-method=thread
--disable-warnings
--no-header
--no-summary
-q
# Async configuration
asyncio_mode = auto
# Test markers for categorization
markers =
unit: Unit tests (fast, isolated)
integration: Integration tests (moderate speed)
mcp: MCP server functionality tests
slow: Slow tests (>10 seconds)
fast: Fast tests (<5 seconds)
network: Tests with network mocking
error_handling: Error scenario tests
timeout_sensitive: Tests sensitive to timing
tui: TUI application tests (Textual-based)
tui_unit: TUI unit tests (widget-level testing)
tui_integration: TUI integration tests (full app workflows)
tui_snapshot: TUI snapshot tests (visual regression)
tui_performance: TUI performance tests (timing and resource usage)
# Filter warnings to reduce noise
filterwarnings =
ignore::DeprecationWarning
ignore::PendingDeprecationWarning
ignore::pytest.PytestUnraisableExceptionWarning
ignore::ResourceWarning
ignore::UserWarning:asyncio
# Test discovery patterns
# python_ignore =
# __pycache__
# *.pyc
# .pytest_cache
# build
# dist
# Timeout configuration
timeout = 30
timeout_method = thread
# Logging configuration for debugging
log_cli = false
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
# Performance settings
cache_dir = .pytest_cache
# collect_ignore = []
# JUnit XML for CI integration
junit_family = xunit2
junit_logging = system-out
junit_log_passing_tests = false