-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Expand file tree
/
Copy pathpytest.ini
More file actions
94 lines (78 loc) · 1.58 KB
/
pytest.ini
File metadata and controls
94 lines (78 loc) · 1.58 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
[pytest]
# Pytest configuration for ScrapeGraphAI
# Test discovery patterns
python_files = test_*.py *_test.py
python_classes = Test*
python_functions = test_*
# Test paths
testpaths = tests
# Minimum Python version
minversion = 8.0
# Output options
addopts =
# Verbosity
-v
--tb=short
--strict-markers
# Coverage options
--cov=scrapegraphai
--cov-report=term-missing
--cov-report=html:htmlcov
--cov-report=xml
--cov-branch
# Performance
--durations=10
# Warnings
-W default
--strict-config
# Output
--color=yes
# Markers
markers =
integration: Integration tests requiring network access
slow: Slow-running tests
llm_provider: Tests for specific LLM providers
requires_api_key: Tests requiring API keys
benchmark: Performance benchmark tests
unit: Unit tests (fast, no external dependencies)
e2e: End-to-end tests
# Test collection
norecursedirs =
.git
.tox
dist
build
*.egg
.venv
venv
__pycache__
.pytest_cache
.ruff_cache
node_modules
# Timeout for tests (in seconds)
timeout = 300
# Async test configuration
asyncio_mode = auto
# Coverage options
[coverage:run]
source = scrapegraphai
omit =
*/tests/*
*/test_*.py
*/__pycache__/*
*/site-packages/*
.venv/*
[coverage:report]
exclude_lines =
pragma: no cover
def __repr__
raise AssertionError
raise NotImplementedError
if __name__ == .__main__.:
if TYPE_CHECKING:
@abstractmethod
@abstract
precision = 2
show_missing = True
[coverage:html]
directory = htmlcov