-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathpytest.ini
More file actions
91 lines (78 loc) · 1.59 KB
/
Copy pathpytest.ini
File metadata and controls
91 lines (78 loc) · 1.59 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
[pytest]
# Pytest configuration for TRM tests
# Minimum version
minversion = 6.0
# Test discovery patterns
python_files = test_*.py
python_classes = Test*
python_functions = test_*
# Test paths
testpaths = tests
# Markers
markers =
slow: marks tests as slow (deselect with '-m "not slow"')
gpu: marks tests that require GPU
integration: integration tests
unit: unit tests
performance: performance benchmarks
validation: paper validation tests
# Output options
addopts =
-ra
--strict-markers
--strict-config
--showlocals
--tb=short
# Coverage options (uncomment to enable)
# --cov=trm_core
# --cov-report=term-missing
# --cov-report=html
# --cov-fail-under=90
# Ignore paths
norecursedirs =
.git
.tox
dist
build
*.egg
__pycache__
.venv
venv
# Logging
log_cli = false
log_cli_level = INFO
log_file = tests.log
log_file_level = DEBUG
# Warnings
filterwarnings =
error
ignore::UserWarning
ignore::DeprecationWarning
ignore:.*CUDA.*:UserWarning
# Timeout (requires pytest-timeout)
# timeout = 300
# timeout_method = thread
# Parallel execution (requires pytest-xdist)
# addopts = -n auto
# Coverage options
[coverage:run]
source = code
omit =
*/tests/*
*/test_*.py
*/__pycache__/*
*/site-packages/*
[coverage:report]
precision = 2
show_missing = true
skip_covered = false
exclude_lines =
pragma: no cover
def __repr__
raise AssertionError
raise NotImplementedError
if __name__ == .__main__.:
if TYPE_CHECKING:
@abstractmethod
[coverage:html]
directory = htmlcov