-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpytest.ini
More file actions
52 lines (45 loc) · 1.09 KB
/
pytest.ini
File metadata and controls
52 lines (45 loc) · 1.09 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
[pytest]
# Test discovery
python_files = test_*.py
python_classes = Test*
python_functions = test_*
# Test paths
testpaths = tests
# Minimum version
minversion = 6.0
# Add current directory to Python path for imports
pythonpath = .
# Output options
addopts =
-v
--strict-markers
--tb=short
--disable-warnings
--cov=.
--cov-report=html
--cov-report=term-missing
# Markers for organizing tests
markers =
unit: Unit tests for individual components
integration: Integration tests for component interactions
cnn: Tests for CNN layers (Conv2d, MaxPool2d, etc.)
core: Tests for core components (Network, Layer, etc.)
optimizer: Tests for optimizer implementations
slow: Tests that take significant time to run
requires_build: Tests that need compiled bindings
# Coverage configuration
[coverage:run]
source = .
omit =
*/tests/*
*/build/*
*/__pycache__/*
*/venv/*
[coverage:report]
exclude_lines =
pragma: no cover
def __repr__
raise AssertionError
raise NotImplementedError
if __name__ == .__main__.:
if TYPE_CHECKING: