-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpytest.ini
More file actions
77 lines (66 loc) · 2.27 KB
/
pytest.ini
File metadata and controls
77 lines (66 loc) · 2.27 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
[tool:pytest]
# Test discovery
testpaths = tests
python_files = test_*.py
python_classes = Test*
python_functions = test_*
# Test markers for categorization and filtering
markers =
unit: Fast unit tests with no external dependencies
integration: Integration tests with limited dependencies
e2e: Full end-to-end workflow tests
# Hardware/acceleration markers
gpu: Tests requiring GPU/CUDA (strongly benefit from GPU acceleration)
cuda: Tests specifically requiring CUDA support
mps: Tests requiring Apple Metal Performance Shaders
cpu: CPU-only tests (no GPU acceleration, can run on any hardware)
cpu_intensive: CPU-intensive tests that may benefit from more cores
# External dependency markers
api: Tests requiring API keys (OpenAI, Gemini)
vlm: Tests using Vision Language Models (GPU recommended)
model_download: Tests that download model weights
# Performance markers
slow: Tests that may take >30 seconds
very_slow: Tests that may take >5 minutes
benchmark: Performance benchmarking tests
# Specific functionality markers
manual: Manual tests not run in CI (require user interaction or large downloads)
llamacpp: Tests for LlamaCPP/GGUF functionality
audio: Audio processing tests (require audio models)
vision: Vision processing tests (require vision models)
tabular: Tabular data processing tests
# CI environment markers
ci_skip: Skip in CI environments
local_only: Only run in local development environments
# Test execution options
addopts =
--strict-markers
--disable-warnings
-v
--tb=short
--maxfail=5
--durations=10
--color=yes
# Warning filters
filterwarnings =
ignore::UserWarning
ignore::DeprecationWarning
ignore::FutureWarning
ignore::PendingDeprecationWarning
# Specific warnings to ignore from common libraries
ignore:.*distutils.*:UserWarning
ignore:.*pkg_resources.*:DeprecationWarning
ignore:.*imp module.*:DeprecationWarning
# Test timeouts (requires pytest-timeout)
timeout = 300
timeout_method = thread
# Minimum version requirements
minversion = 7.0
# Coverage options (when using pytest-cov)
[tool:pytest_cov]
source = marvis
omit =
*/tests/*
*/test_*.py
setup.py
*/examples/*