-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpytest.ini
More file actions
66 lines (59 loc) · 1.96 KB
/
pytest.ini
File metadata and controls
66 lines (59 loc) · 1.96 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
[pytest]
# Test discovery
testpaths = tests
python_files = test_*.py
python_classes = Test*
python_functions = test_*
# Ignore archived tests (obsolete tests that would fail due to import errors)
norecursedirs = tests/archived
# Coverage configuration
addopts =
# Coverage options
--cov=plugins/autonomous-dev/hooks
--cov=plugins/autonomous-dev/lib
--cov=scripts
--cov-report=html
--cov-report=term-missing
--cov-report=xml
# Coverage enforcement: baseline 4%, target 80% (see PROJECT.md)
# Ratchet up as coverage improves — never decrease this value
--cov-fail-under=4
# Output options
--verbose
--strict-markers
--tb=short
# Warnings
-W ignore::DeprecationWarning
# Markers for organizing tests
markers =
unit: Unit tests for individual functions
integration: Integration tests for workflows
slow: Tests that take a long time to run
hooks: Tests for hook functionality
smoke: Smoke tests - fast validation of critical paths (tier 0)
regression: Regression tests - protect released features from breaking (tier 1)
extended: Extended tests - deeper validation scenarios (tier 2)
progression: Progression tests - validate new feature development (tier 3)
tdd_red: TDD red phase tests (expected to fail before implementation)
timeout: Tests with execution time limits
genai: GenAI-powered UAT tests (may incur API costs, requires --genai flag)
property: Property-based tests using hypothesis (deterministic kernel)
e2e: End-to-end tests - full workflow validation (tier 1)
acceptance: Acceptance criteria tests - permanent GenAI validation (tier 0)
# Coverage exclusions
[coverage:run]
omit =
*/tests/*
*/test_*.py
*/__pycache__/*
*/venv/*
*/node_modules/*
[coverage:report]
exclude_lines =
pragma: no cover
def __repr__
raise AssertionError
raise NotImplementedError
if __name__ == .__main__.:
if TYPE_CHECKING:
@abstractmethod