90 lines
2.1 KiB
INI
90 lines
2.1 KiB
INI
[pytest]
|
|
# Pytest configuration for TradingAgents
|
|
|
|
# Test discovery patterns
|
|
python_files = test_*.py *_test.py
|
|
python_classes = Test*
|
|
python_functions = test_*
|
|
|
|
# Test paths
|
|
testpaths = tests
|
|
|
|
# Minimum Python version
|
|
minversion = 6.0
|
|
|
|
# Add options for test output
|
|
addopts =
|
|
# Verbose output
|
|
-v
|
|
# Show extra test summary info
|
|
-ra
|
|
# Show local variables in tracebacks
|
|
--showlocals
|
|
# Strict markers - fail on unknown markers
|
|
--strict-markers
|
|
# Strict config - fail on unknown config options
|
|
--strict-config
|
|
# Show warnings
|
|
-W default
|
|
# Capture method
|
|
--capture=no
|
|
# Coverage options (uncomment to enable)
|
|
# --cov=tradingagents
|
|
# --cov-report=html
|
|
# --cov-report=term-missing
|
|
# --cov-fail-under=90
|
|
|
|
# Markers for test categorization
|
|
markers =
|
|
unit: Unit tests that test individual components in isolation
|
|
integration: Integration tests that test multiple components together
|
|
slow: Tests that take a long time to run (> 1 second)
|
|
broker: Tests related to broker integration
|
|
llm: Tests related to LLM factory
|
|
web: Tests related to web interface
|
|
requires_api_key: Tests that require actual API keys (skip in CI)
|
|
requires_network: Tests that require network access (skip in CI)
|
|
|
|
# Logging
|
|
log_cli = false
|
|
log_cli_level = INFO
|
|
log_cli_format = %(asctime)s [%(levelname)8s] %(message)s
|
|
log_cli_date_format = %Y-%m-%d %H:%M:%S
|
|
|
|
log_file = tests/logs/pytest.log
|
|
log_file_level = DEBUG
|
|
log_file_format = %(asctime)s [%(levelname)8s] %(name)s: %(message)s
|
|
log_file_date_format = %Y-%m-%d %H:%M:%S
|
|
|
|
# Timeout for tests (in seconds)
|
|
# Uncomment if you have pytest-timeout installed
|
|
# timeout = 300
|
|
# timeout_method = thread
|
|
|
|
# Ignore certain warnings
|
|
filterwarnings =
|
|
ignore::DeprecationWarning
|
|
ignore::PendingDeprecationWarning
|
|
|
|
# Test collection ignore patterns
|
|
norecursedirs =
|
|
.git
|
|
.tox
|
|
dist
|
|
build
|
|
*.egg
|
|
__pycache__
|
|
.pytest_cache
|
|
node_modules
|
|
.env
|
|
.venv
|
|
|
|
# Console output style
|
|
console_output_style = progress
|
|
|
|
# Doctest options
|
|
doctest_optionflags = NORMALIZE_WHITESPACE ELLIPSIS
|
|
|
|
# Asyncio mode
|
|
asyncio_mode = auto
|