bookmyservice-mhs / app /tests /pytest.ini
MukeshKapoor25's picture
test(performance): Add comprehensive test suite for performance optimization
7611990
[tool:pytest]
# Pytest configuration for regression test pack
# Test discovery
testpaths = app/tests
python_files = test_*.py
python_classes = Test*
python_functions = test_*
# Markers for test categorization
markers =
unit: Unit tests for individual components
integration: Integration tests for component interactions
performance: Performance and load tests
security: Security and vulnerability tests
regression: Regression tests for critical functionality
slow: Tests that take longer to run
database: Tests that require database connections
nlp: Tests for NLP functionality
api: API endpoint tests
cache: Cache-related tests
# Test execution options
addopts =
-v
--tb=short
--strict-markers
--disable-warnings
--color=yes
--durations=10
--maxfail=5
# Async test configuration
asyncio_mode = auto
# Test timeout (in seconds) - requires pytest-timeout plugin
# timeout = 300
# Minimum Python version
minversion = 3.8
# Test output
console_output_style = progress
junit_family = xunit2
# Coverage configuration (if using pytest-cov)
# addopts = --cov=app --cov-report=html --cov-report=term-missing --cov-fail-under=80
# Logging configuration
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
# Filter warnings
filterwarnings =
ignore::DeprecationWarning
ignore::PendingDeprecationWarning
ignore::UserWarning:motor.*
ignore::UserWarning:pymongo.*