-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpytest.ini
More file actions
65 lines (54 loc) · 1.72 KB
/
pytest.ini
File metadata and controls
65 lines (54 loc) · 1.72 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
[pytest]
# Pytest configuration for Things 3 MCP Server Tests
# Test discovery
testpaths = tests
python_files = test_*.py *_test.py
python_classes = Test*
python_functions = test_*
# Async support
asyncio_mode = auto
# Output configuration
addopts =
--strict-markers
--strict-config
--verbose
--tb=short
--color=yes
--durations=10
--show-capture=no
-ra
# Test markers
markers =
unit: Unit tests for individual components
integration: Integration tests requiring multiple components
server: Server-level tests
applescript: Tests involving AppleScript operations
tools: Tests for MCP tools
models: Tests for data models
error: Error handling tests
slow: Slow tests that may take longer to execute
skip_ci: Tests to skip in CI environment
# Minimum version
minversion = 7.0
# Test timeout (requires pytest-timeout plugin)
# timeout = 300
# Coverage configuration (if using pytest-cov)
# These settings would be used if pytest-cov is installed
# addopts = --cov=src --cov-report=html --cov-report=term-missing --cov-fail-under=80
# Filter warnings
filterwarnings =
ignore::DeprecationWarning
ignore::PendingDeprecationWarning
ignore:.*unclosed.*:ResourceWarning
# Log configuration
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
log_file = tests/pytest.log
log_file_level = DEBUG
log_file_format = %(asctime)s [%(levelname)8s] %(filename)s:%(lineno)d - %(funcName)s(): %(message)s
log_file_date_format = %Y-%m-%d %H:%M:%S
# Test collection - use --ignore for pytest command line
# collect_ignore not supported in pytest.ini
# Use: pytest --ignore=setup.py --ignore=build etc.