-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathpytest.ini
More file actions
69 lines (59 loc) · 1.35 KB
/
pytest.ini
File metadata and controls
69 lines (59 loc) · 1.35 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
[pytest]
# Pytest configuration for Knowledge Graph System
# Test discovery patterns
python_files = test_*.py *_test.py
python_classes = Test*
python_functions = test_*
# Test paths
testpaths = tests
# Async support (for FastAPI testing)
asyncio_mode = auto
# Output options
# Note: Inline comments not supported in addopts, using separate comment lines
console_output_style = progress
addopts =
-v
--strict-markers
--tb=short
--cov=api/app
--cov-report=term-missing
--cov-report=html
-p no:warnings
# Markers for test categorization
markers =
unit: Unit tests (fast, isolated)
integration: Integration tests (require database)
api: API endpoint tests (require running server)
slow: Slow running tests
smoke: Smoke tests (quick sanity checks)
# Environment variables for tests
env =
AI_PROVIDER=mock
MOCK_MODE=default
# Database config inherited from container env vars (docker-compose)
# JOB_DB_PATH=:memory: would use in-memory job queue (optional)
# Ignore patterns
norecursedirs =
.git
.tox
dist
build
*.egg
venv
node_modules
client
manual
# Coverage options
[coverage:run]
source = api/app
omit =
*/tests/*
*/test_*
*/__pycache__/*
*/venv/*
[coverage:report]
precision = 2
show_missing = True
skip_covered = False
[coverage:html]
directory = htmlcov