-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpytest.ini
More file actions
46 lines (38 loc) · 1.14 KB
/
pytest.ini
File metadata and controls
46 lines (38 loc) · 1.14 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
[pytest]
# Pytest configuration for IriusRisk CLI testing
# Test discovery
testpaths = tests
python_files = test_*.py *_test.py
python_classes = Test*
python_functions = test_*
# Output and reporting
addopts =
--verbose
--tb=short
--strict-markers
--disable-warnings
--color=yes
--durations=10
--maxfail=5
# Markers for test categorization
markers =
unit: Unit tests for individual functions/methods
integration: Integration tests for CLI commands
mcp: Tests for MCP server functionality
slow: Tests that take longer to run
network: Tests that would normally require network access (mocked)
asyncio: Async tests that use asyncio
performance: Performance-sensitive tests
# Minimum version
minversion = 6.0
# Test timeout (prevent hanging tests)
timeout = 30
# Performance optimizations
filterwarnings =
ignore::DeprecationWarning
ignore::PendingDeprecationWarning
ignore::UserWarning:urllib3.*
# Parallel execution (if pytest-xdist is installed)
# addopts = -n auto
# Coverage settings (if pytest-cov is installed)
# addopts = --cov=src/iriusrisk_cli --cov-report=html --cov-report=term-missing