mirror of
https://github.com/0xsrb/AASRT.git
synced 2026-04-22 23:56:17 +02:00
50 lines
1022 B
INI
50 lines
1022 B
INI
[pytest]
|
|
# AASRT Test Configuration
|
|
|
|
# Test discovery
|
|
testpaths = tests
|
|
python_files = test_*.py
|
|
python_classes = Test*
|
|
python_functions = test_*
|
|
|
|
# Markers for categorizing tests
|
|
markers =
|
|
unit: Unit tests (fast, isolated)
|
|
integration: Integration tests (slower, may use real resources)
|
|
slow: Tests that take a long time to run
|
|
security: Security-focused tests
|
|
api: Tests that interact with external APIs
|
|
|
|
# Default options
|
|
addopts =
|
|
-v
|
|
--tb=short
|
|
--strict-markers
|
|
-ra
|
|
|
|
# Coverage settings (when using pytest-cov)
|
|
# Run with: pytest --cov=src --cov-report=html
|
|
|
|
# Ignore patterns
|
|
norecursedirs =
|
|
.git
|
|
__pycache__
|
|
.venv
|
|
venv
|
|
node_modules
|
|
.pytest_cache
|
|
|
|
# Timeout for individual tests (requires pytest-timeout)
|
|
timeout = 300
|
|
|
|
# Logging during tests
|
|
log_cli = true
|
|
log_cli_level = WARNING
|
|
log_cli_format = %(asctime)s [%(levelname)s] %(name)s: %(message)s
|
|
|
|
# Filter warnings
|
|
filterwarnings =
|
|
ignore::DeprecationWarning
|
|
ignore::PendingDeprecationWarning
|
|
|