-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpytest.ini
More file actions
42 lines (35 loc) · 1.17 KB
/
Copy pathpytest.ini
File metadata and controls
42 lines (35 loc) · 1.17 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
[pytest]
# Pytest configuration for PinPoint worktree sync tests
# Test discovery patterns
python_files = test_*.py *_test.py
python_classes = Test*
python_functions = test_*
# Test paths
testpaths = scripts/tests
# Output options
addopts =
# Compact output with short tracebacks keeps agent and CI logs useful.
-q
--tb=short
# Never serialize locals by default: tests may retain environment secrets.
--no-showlocals
# Strict markers - fail on unknown markers
--strict-markers
# Show summary of all test outcomes
-ra
# Capture stdout/stderr and reveal it only for failing tests.
--capture=fd
# Distribute test execution across available CPU cores.
-n auto
--dist=loadgroup
# Deep local debugging may expose secrets. Only in a deliberately sanitized
# environment, opt in explicitly with: python3 -m pytest -vv --showlocals -s <test>
# Never use that override in CI or agent-visible logs.
# Markers
markers =
unit: Unit tests for core logic
integration: Integration tests (may require git/docker)
slow: Slow running tests
xdist_group: Group tests into the same worker session
# Minimum Python version
minversion = 3.10