49 lines
1.2 KiB
INI
49 lines
1.2 KiB
INI
[tool:pytest]
|
|
# Test discovery
|
|
testpaths = tests
|
|
python_files = test_*.py *_test.py
|
|
python_classes = Test*
|
|
python_functions = test_*
|
|
|
|
# Output options
|
|
addopts =
|
|
--verbose
|
|
--tb=short
|
|
--strict-markers
|
|
--strict-config
|
|
--color=yes
|
|
--durations=10
|
|
--cov=tradingagents
|
|
--cov=cli
|
|
--cov-report=term-missing
|
|
--cov-report=html:htmlcov
|
|
--cov-report=xml
|
|
|
|
# Minimum coverage percentage
|
|
cov-fail-under = 70
|
|
|
|
# Test markers
|
|
markers =
|
|
unit: Fast unit tests that don't require external dependencies
|
|
integration: Slower integration tests that may require external services
|
|
api: Tests that require API access (may be skipped in CI)
|
|
slow: Tests that take a long time to run
|
|
|
|
# Filtering
|
|
filterwarnings =
|
|
ignore::DeprecationWarning
|
|
ignore::PendingDeprecationWarning
|
|
ignore::UserWarning:langchain.*
|
|
ignore::UserWarning:langgraph.*
|
|
|
|
# Logging
|
|
log_cli = true
|
|
log_cli_level = INFO
|
|
log_cli_format = %(asctime)s [%(levelname)8s] %(name)s: %(message)s
|
|
log_cli_date_format = %Y-%m-%d %H:%M:%S
|
|
|
|
# Timeout for tests (in seconds)
|
|
timeout = 300
|
|
|
|
# Parallel execution
|
|
# addopts = ... -n auto # Uncomment to enable parallel testing with pytest-xdist |