-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathpytest.ini
More file actions
68 lines (59 loc) · 1.66 KB
/
pytest.ini
File metadata and controls
68 lines (59 loc) · 1.66 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
[pytest]
# Pytest configuration for cortex-plugin
# Test discovery patterns
python_files = test_*.py
python_classes = Test*
python_functions = test_*
# Test paths
testpaths = tests
# Output options
addopts =
-v
--tb=short
# Markers for categorizing tests
markers =
unit: Unit tests for individual components
integration: Integration tests for CLI and workflows
slow: Tests that take longer to run
fast: Tests that run quickly (< 1 second)
tui: Tests for TUI components
cli: Tests for CLI interface
core: Tests for core functionality
intelligence: Tests for AI/intelligence features
smoke: Smoke tests for critical paths
regression: Regression tests for bug fixes
requires_yaml: Tests that require PyYAML to be installed
# Optional coverage configuration lives under [coverage:*].
# Developers can pass --cov manually when pytest-cov is available.
# Coverage settings
[coverage:run]
source = claude_ctx_py
omit =
*/tests/*
*/__pycache__/*
*/site-packages/*
[coverage:report]
# Progressive coverage target (current: 15%, target: 80%)
# Phase 1: 15% (Week 1) - Baseline + buffer
# Phase 2: 30% (Week 2) - Core modules
# Phase 3: 50% (Week 3) - Major features
# Phase 4: 65% (Week 4) - Comprehensive
# Phase 5: 80% (Future) - Target coverage
fail_under = 15
precision = 2
show_missing = True
skip_covered = False
exclude_lines =
# Standard exclusions
pragma: no cover
def __repr__
raise AssertionError
raise NotImplementedError
if __name__ == .__main__.:
if TYPE_CHECKING:
@abstractmethod
@abc.abstractmethod
# CLI entry points
if __name__ == "__main__"
[coverage:html]
directory = htmlcov