Repository navigation
Expand file tree
/
Copy pathpytest.ini
More file actions
118 lines (103 loc) · 2.84 KB
/
Copy pathpytest.ini
File metadata and controls
118 lines (103 loc) · 2.84 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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
[pytest]
# Test discovery patterns
python_files = test_*.py
python_classes = Test*
python_functions = test_*
# Test directories
testpaths = tests
# Minimum Python version
minversion = 6.0
# Command line options
addopts =
# Verbose output
-v
# Show summary of all test outcomes
-ra
# Strict markers - fail on unknown markers
--strict-markers
# Strict config - fail on config issues
--strict-config
# Show extra test summary info
-vv
# Disable warnings summary (can be enabled with --warnings-summary)
--disable-warnings
# Test markers
markers =
unit: Unit tests - fast, isolated tests
integration: Integration tests - may call external services
slow: Slow tests - may take >5 seconds
api: Tests for API layer (vnstock/api/)
explorer: Tests for explorer modules (vnstock/explorer/)
vci: Tests specific to VCI data source
tcbs: Tests specific to TCBS data source
msn: Tests specific to MSN data source
fmp: Tests specific to FMP data source
core: Tests for core utilities
smoke: Smoke tests - basic functionality checks
regression: Regression tests for fixed bugs
# Coverage configuration
[coverage:run]
source = vnstock
branch = True
omit =
*/tests/*
*/test_*.py
*/__pycache__/*
*/site-packages/*
*/dist-packages/*
*/.venv/*
*/venv/*
# Exclude generated files
*/_version.py
*/setup.py
# Exclude deprecated modules
*/archived/*
[coverage:report]
# Coverage report settings - lines to exclude from consideration
precision = 2
skip_covered = False
skip_empty = True
show_missing = True
exclude_lines =
# Standard pragma
pragma: no cover
# Don't complain about missing debug code
def __repr__
# Don't complain if tests don't hit defensive assertion code
raise AssertionError
raise NotImplementedError
# Don't complain if non-runnable code isn't run
if __name__ == .__main__.:
# Don't complain about abstract methods
@abstractmethod
# Don't complain about type checking blocks
if TYPE_CHECKING:
# Don't complain about protocol definitions
@runtime_checkable
class.*Protocol.*:
[coverage:html]
directory = tests/report/coverage_html
title = Vnstock Test Coverage Report
# Tool configuration
[tool:pytest]
# Console output style
console_output_style = progress
# Log configuration
log_cli = false
log_cli_level = INFO
log_cli_format = %(asctime)s [%(levelname)8s] %(message)s
log_cli_date_format = %Y-%m-%d %H:%M:%S
# Timeout for tests (in seconds)
timeout = 300
timeout_method = thread
# Retry configuration for flaky tests
# Install: pip install pytest-rerunfailures
# Usage: pytest --reruns 3 --reruns-delay 5
# Parallel execution
# Install: pip install pytest-xdist
# Usage: pytest -n auto
# Filterwarnings
filterwarnings =
error
ignore::UserWarning
ignore::DeprecationWarning