forked from Taxuspt/garmin_mcp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpytest.ini
More file actions
54 lines (43 loc) · 1.38 KB
/
Copy pathpytest.ini
File metadata and controls
54 lines (43 loc) · 1.38 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
[pytest]
# Pytest configuration for Garmin MCP testing
# Test discovery patterns
python_files = test_*.py
python_classes = Test*
python_functions = test_*
# Test paths
testpaths = tests
# Minimum version
minversion = 7.0
# Output options
addopts =
-v
--strict-markers
--tb=short
--disable-warnings
# Markers for different test types
markers =
unit: Unit tests (fast, isolated, mocked)
integration: Integration tests (FastMCP integration with mocked API)
e2e: End-to-end tests (require real Garmin credentials and API access) - SKIPPED BY DEFAULT
slow: Tests that take a long time to run
# Configure pytest to skip e2e tests unless explicitly requested
# To run e2e tests: pytest -m e2e
# To skip e2e tests: pytest -m "not e2e" (or just pytest for integration tests)
# Asyncio configuration
asyncio_mode = auto
# Coverage options (if using pytest-cov)
# Uncomment to enable coverage reporting
# addopts = --cov=garmin_mcp --cov-report=html --cov-report=term
# Filter warnings
filterwarnings =
ignore::DeprecationWarning
ignore::PendingDeprecationWarning
# Log configuration
log_cli = false
log_cli_level = INFO
log_cli_format = %(asctime)s [%(levelname)8s] %(message)s
log_cli_date_format = %Y-%m-%d %H:%M:%S
log_file = tests/test.log
log_file_level = DEBUG
log_file_format = %(asctime)s [%(levelname)8s] %(name)s: %(message)s
log_file_date_format = %Y-%m-%d %H:%M:%S