-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpytest.ini
More file actions
49 lines (42 loc) · 1.56 KB
/
pytest.ini
File metadata and controls
49 lines (42 loc) · 1.56 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
# pytest.ini
[pytest]
# --------------------------------------------------------------------
# Python-Apathetic-Template test configuration
# We use pytest.ini instead of pyproject.toml because
# of the large amount of norecursedirs and not wanting
# pyproject.toml to just be pages of ignores from each
# tool.
# --------------------------------------------------------------------
# Root test path
testpaths = tests
markers =
slow: marks tests as slow (deselect with '-m "not slow"')
debug: marks tests as debug-only (skipped by default unless -k debug)
# Don't recurse into generated or build output directories
norecursedirs =
dist
tmp-dist
tmp
out
bin
build
.git
.venv
.cache
__pycache__
# Add src/ to sys.path for imports
pythonpath = src
# Show more context in assertion diffs (-s needed for early prints)
# Exclude pocket-build compatibility tests (to be migrated in Phase 5+6)
# Parallel execution: use -n auto to auto-detect CPU count, or -n N for N workers
# Note: parallel execution is opt-in via command line (not in addopts) to avoid
# issues with test isolation and shared resources
addopts = -ra -q --color=yes --show-capture=all --tb=short
# Timeout configuration (pytest-timeout plugin)
# Per-test timeout: 60 seconds
timeout = 60
timeout_func_only = false
# Suppress pytest-benchmark warnings when running with xdist (parallel tests)
# Benchmarks are automatically disabled in parallel mode, which is expected
filterwarnings =
ignore:Benchmarks are automatically disabled because xdist plugin is active:pytest.PytestWarning