-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpytest.ini
More file actions
48 lines (41 loc) · 1.11 KB
/
pytest.ini
File metadata and controls
48 lines (41 loc) · 1.11 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
[pytest]
# Test discovery patterns
python_files = test_*.py *_test.py
python_classes = Test*
python_functions = test_*
# Test paths
testpaths = tests
# Asyncio configuration
asyncio_mode = auto
# Coverage settings
addopts =
--verbose
--strict-markers
--cov=core
--cov-branch
--cov-report=html
--cov-report=term-missing
--cov-report=json
--cov-fail-under=49
# Custom markers for test categorization
markers =
unit: Unit tests (fast, isolated)
integration: Integration tests (component handoffs)
e2e: End-to-end tests (complete workflows)
bdd: BDD/Gherkin scenarios
backtesting: Backtest tests (slower, data-intensive)
slow: Slow running tests
broker: Tests requiring broker connection
live: Tests that interact with live systems (use with caution)
asyncio: Async tests that require event loop
# BDD/Gherkin configuration
bdd_features_base_dir = tests/e2e/features/
# Logging
log_cli = false
log_cli_level = INFO
log_file = tests/logs/pytest.log
log_file_level = DEBUG
# Warnings
filterwarnings =
ignore::DeprecationWarning
ignore::PendingDeprecationWarning