forked from sentient-agi/ROMA
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpytest.ini
More file actions
54 lines (46 loc) · 1.6 KB
/
pytest.ini
File metadata and controls
54 lines (46 loc) · 1.6 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
[pytest]
# Pytest configuration for ROMA-DSPy resilience system tests
# Test discovery
testpaths = tests
python_files = test_*.py
python_classes = Test*
python_functions = test_*
# Output and reporting
addopts =
--verbose
--tb=short
--strict-markers
--strict-config
--disable-warnings
--color=yes
--durations=10
# Coverage configuration (use --cov to enable)
# Example: pytest --cov=src/roma_dspy --cov-report=html --cov-fail-under=85
# For minimal install validation: pytest tests/test_minimal_install.py (no coverage needed)
# Async testing
asyncio_mode = auto
# Markers
markers =
unit: Unit tests for individual components
integration: Integration tests for component interaction
e2e: End-to-end tests for complete workflows
checkpoint: Tests related to checkpoint functionality
error_handling: Tests for error propagation and handling
performance: Performance and resource usage tests
slow: Tests that take longer to run
network: Tests that require network access (usually mocked)
file_io: Tests that perform file I/O operations
requires_db: Tests requiring PostgreSQL database
requires_llm: Tests requiring LLM API keys
requires_e2b: Tests requiring E2B sandbox environment
e2b: E2B sandbox integration tests
tools: Tests for toolkit integrations (crypto, web search, etc)
# Test filtering
filterwarnings =
ignore::DeprecationWarning
ignore::PendingDeprecationWarning
ignore:.*unclosed.*:ResourceWarning
# Minimum Python version
minversion = 3.8
# Parallel test execution (if pytest-xdist is installed)
# addopts = --numprocesses=auto