-
Notifications
You must be signed in to change notification settings - Fork 45
Expand file tree
/
Copy pathpytest.ini
More file actions
86 lines (76 loc) · 1.89 KB
/
pytest.ini
File metadata and controls
86 lines (76 loc) · 1.89 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
[pytest]
# Test discovery and execution
testpaths = tests
python_files = test_*.py
python_classes = Test*
python_functions = test_*
# Markers
markers =
integration: mark test as integration test
slow: mark test as slow running
unit: mark test as unit test
security: mark test as security test
policy: mark test as policy-related test
ml: mark test as machine learning test
docker: mark test as Docker scanner test
kubernetes: mark test as Kubernetes scanner test
terraform: mark test as Terraform scanner test
helm: mark test as Helm scanner test
cli: mark test as CLI test
# Test execution options
addopts =
--verbosity=2
--showlocals
--tb=short
--strict-markers
--cov=dsp_scanner
--cov-report=term-missing
--cov-report=xml
--cov-report=html
--durations=10
--color=yes
-ra
--maxfail=2
--show-capture=no
# Coverage configuration
[coverage:run]
branch = True
source = src/dsp_scanner
[coverage:report]
exclude_lines =
pragma: no cover
def __repr__
raise NotImplementedError
if __name__ == .__main__.:
pass
raise ImportError
except ImportError:
# Logging configuration during tests
log_cli = True
log_cli_level = INFO
log_cli_format = %(asctime)s [%(levelname)8s] %(message)s (%(filename)s:%(lineno)s)
log_cli_date_format = %Y-%m-%d %H:%M:%S
# Test file patterns to ignore
norecursedirs =
*.egg
.eggs
dist
build
docs
.tox
.git
__pycache__
.pytest_cache
.coverage
htmlcov
# Disable warnings from third-party packages
filterwarnings =
ignore::DeprecationWarning:tensorflow.*:
ignore::DeprecationWarning:numpy.*:
ignore::DeprecationWarning:sklearn.*:
# Fail if test is missing docstring
doctest_optionflags = NORMALIZE_WHITESPACE IGNORE_EXCEPTION_DETAIL
# Show local variables in tracebacks
showlocals = True
# Test timeout (in seconds)
timeout = 300