-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpytest.ini
More file actions
53 lines (45 loc) · 1.73 KB
/
pytest.ini
File metadata and controls
53 lines (45 loc) · 1.73 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
[tool:pytest]
# Pytest configuration file
# This supplements the configuration in pyproject.toml
# Test discovery patterns
python_files = test_*.py *_test.py
python_classes = Test*
python_functions = test_*
testpaths = tests
norecursedirs = scripts notebooks runs .venv build dist
# Coverage configuration
# (coverage_data_file below controls the exact location)
coverage_parallel = true
# Markers for organizing tests
markers =
unit: Unit tests (fast, isolated)
integration: Integration tests (slower, may require external resources)
slow: Slow tests (may take several seconds)
gpu: Tests requiring GPU (skip if no GPU available)
audio: Tests requiring audio processing
vision: Tests requiring vision processing
nlp: Tests requiring NLP processing
platform: Platform-specific tests (cross-platform compatibility)
model: Tests requiring actual model loading
addopts = -k "not test_huggingface_models" --maxfail=1
# Test output formatting
console_output_style = progress
junit_family = xunit2
# Warnings configuration
filterwarnings =
ignore::DeprecationWarning
ignore::PendingDeprecationWarning
ignore::UserWarning:torch.*
ignore::UserWarning:transformers.*
# Suppress noisy torchvision deprecation warnings (pretrained->weights)
ignore::UserWarning:torchvision.*
# Suppress sklearn single-label warnings in tests that use small synthetic labels
ignore::UserWarning:sklearn.*
# Suppress a known FutureWarning originating from our production trainer wrapper
ignore::FutureWarning:plantguard.training.production_trainer
# Coverage files directory
coverage_data_file = .coverage/.coverage
# Minimum version requirements
minversion = 7.0
# Test timeout (prevent hanging tests)
timeout = 300