-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathpytest.ini
More file actions
65 lines (56 loc) · 1.76 KB
/
pytest.ini
File metadata and controls
65 lines (56 loc) · 1.76 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
[pytest]
# Pytest configuration for CodeFRAME
# Minimum pytest version
minversion = 7.0
# Test discovery patterns
python_files = test_*.py *_test.py
python_classes = Test*
python_functions = test_*
# Test paths
testpaths = tests
# Pytest-asyncio configuration
asyncio_mode = auto
# Output options
addopts =
# Verbose output
-v
# Show local variables in tracebacks
--showlocals
# Show summary of all test outcomes
-ra
# Strict markers (fail on unknown markers)
--strict-markers
# Strict config (fail on config errors)
--strict-config
# Show durations of slowest tests
--durations=10
# Markers for test categorization
markers =
slow: marks tests as slow (deselect with '-m "not slow"')
integration: marks tests as integration tests (use real DB and components)
unit: marks tests as unit tests (mock external dependencies)
requires_api_key: marks tests that require API keys
requires_db: marks tests that require database
requires_subprocess: marks tests that execute subprocess commands
e2e: marks tests as end-to-end tests
e2e_llm: marks e2e tests requiring real LLM API calls (expensive, run explicitly)
asyncio: marks tests as async tests
v2: marks tests for v2 (CLI-first, headless) functionality
edge_case: marks edge case tests for boundary conditions and error handling
# To run only unit tests (fast):
# pytest -m "not integration and not slow and not e2e"
#
# To run only integration tests:
# pytest -m integration
#
# To run all tests except slow ones:
# pytest -m "not slow"
#
# To run only v2 tests:
# pytest -m v2
# Coverage warnings
filterwarnings =
error::DeprecationWarning
ignore::PendingDeprecationWarning
# Console output formatting
console_output_style = progress