-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.cfg
More file actions
100 lines (94 loc) · 2.34 KB
/
setup.cfg
File metadata and controls
100 lines (94 loc) · 2.34 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
# Pytest configuration for VisionSub
[tool:pytest]
minversion = 6.0
addopts =
-v
--tb=short
--strict-markers
--strict-config
--cov=src/visionsub
--cov-report=term-missing
--cov-report=html
--cov-report=xml
--cov-fail-under=80
--maxfail=5
--durations=10
--disable-warnings
testpaths = tests
python_files = test_*.py
python_classes = Test*
python_functions = test_*
markers =
unit: Unit tests for individual components
integration: Integration tests for component interactions
performance: Performance tests for benchmarking
slow: Tests that take a long time to run
gpu: Tests that require GPU acceleration
gui: Tests that require GUI environment
network: Tests that require network access
database: Tests that require database access
security: Security-related tests
api: API-related tests
ocr: OCR-related tests
video: Video processing tests
memory: Memory management tests
logging: Logging system tests
health: Health check tests
config: Configuration tests
async: Asynchronous operation tests
cache: Cache-related tests
security: Security-related tests
ui: User interface tests
web: Web interface tests
batch: Batch processing tests
realtime: Real-time processing tests
regression: Regression tests
smoke: Smoke tests for basic functionality
e2e: End-to-end tests
filterwarnings =
ignore::DeprecationWarning
ignore::PendingDeprecationWarning
ignore::UserWarning:visionsub.*
ignore::ResourceWarning
ignore::ImportWarning
# Coverage configuration
[coverage:run]
source = src/visionsub
omit =
*/tests/*
*/test_*
*/__pycache__/*
*/migrations/*
*/venv/*
*/env/*
*/.env/*
*/.venv/*
*/build/*
*/dist/*
*/.tox/*
setup.py
*/setup.py
*/conftest.py
*/.pytest_cache/*
[coverage:report]
exclude_lines =
pragma: no cover
def __repr__
raise AssertionError
raise NotImplementedError
if __name__ == .__main__.:
if TYPE_CHECKING:
class .*\bProtocol\):
@(abc\.)?abstractmethod
[coverage:html]
directory = htmlcov
[coverage:xml]
output = coverage.xml
# Test configuration
[pytest-testmon]
testmon_commandline = "pytest"
project_name = "visionsub"
# Configure pytest-xdist for parallel testing
[pytest-xdist]
numprocesses = auto
dist = loadscope