-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpytest.ini
More file actions
62 lines (55 loc) · 1.86 KB
/
pytest.ini
File metadata and controls
62 lines (55 loc) · 1.86 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
[pytest]
# AutoBot pytest configuration
# Ensure backend and shared modules are importable before collection starts.
# pytest processes `pythonpath` before any test collection, so bare imports
# like `from models.task_context import ...` resolve correctly.
# Requires pytest >= 7.0 (built-in mechanism; more reliable than conftest.py
# sys.path manipulation which runs too late to prevent collection errors).
# Issue: #1884
pythonpath = autobot-backend autobot-shared
# Test markers
markers =
integration: Integration tests that may require external services
slow: Tests that take a long time to run
distributed: Tests for distributed multi-VM scenarios
performance: Performance and load tests
security: Security-related tests
# Test discovery - colocated tests live next to source files (#734)
testpaths =
autobot-backend
autobot-slm-backend
autobot-shared
python_files = test_*.py *_test.py *.e2e_test.py *.integration_test.py
python_classes = Test*
python_functions = test_*
# Exclude directories that are not real test code:
# - autobot-slm-backend/ansible/ contains Ansible-synced node copies with duplicate tests
# - autobot-npu-worker/resources/ contains Windows-only tests requiring PySide6
# - Standard tooling/cache directories
norecursedirs =
.git
.tox
.venv
venv
__pycache__
node_modules
.worktrees
dist
build
*.egg-info
# Output options
addopts =
--verbose
--strict-markers
--tb=short
--asyncio-mode=auto
--ignore=autobot-slm-backend/ansible
--ignore=autobot-npu-worker/resources
# Coverage options
# Run with: pytest --cov=autobot-backend --cov=autobot-slm-backend --cov-report=html
[coverage:run]
source = autobot-backend,autobot-slm-backend,autobot-npu-worker,autobot-shared
omit = *_test.py,*/test_*,*/venv/*,*/__pycache__/*
[coverage:report]
precision = 2
skip_empty = True