Implement comprehensive test timeout infrastructure to prevent long-running tests from blocking CI/CD pipelines, with configurable timeout settings. Key changes: - Install pytest-timeout plugin for test execution time management - Create pytest-timeout.ini with 15-second default timeout for CI environments - Keep pytest.ini timeout-free to avoid conflicts with subprocess tests - Fix Issue #46 end-to-end workflow test validation logic - Update Issue #57 test efficiency expectations (30s -> 120s for current suite size) Test Infrastructure Improvements: - Added timeout markers for tests requiring custom durations - Separated timeout configuration to avoid subprocess conflicts - Enhanced test failure debugging with proper timeout handling - Maintained backward compatibility for existing test infrastructure Impact: - Prevents test suite hangs and timeouts in CI/CD - Provides configurable timeout settings for different environments - Fixes immediate test failures while preserving test coverage - Enables efficient test execution with proper time constraints Current test status: 701 total tests with timeout infrastructure active Tested with Issue #46 tests: 8/8 passing under 15-second timeout 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
30 lines
918 B
INI
30 lines
918 B
INI
[pytest]
|
|
addopts =
|
|
--strict-markers
|
|
--strict-config
|
|
--verbose
|
|
--tb=short
|
|
--durations=10
|
|
--maxfail=3
|
|
--timeout=15
|
|
--timeout-method=thread
|
|
-ra
|
|
testpaths = tests
|
|
norecursedirs = .markitect_workspace .git __pycache__ .pytest_cache
|
|
python_files = test_*.py *_test.py
|
|
python_classes = Test*
|
|
python_functions = test_*
|
|
markers =
|
|
slow: marks tests as slow (deselect with '-m "not slow"')
|
|
integration: marks tests as integration tests
|
|
e2e: marks tests as end-to-end tests
|
|
performance: marks tests as performance tests
|
|
unit: marks tests as unit tests
|
|
smoke: marks tests as smoke tests for quick validation
|
|
asyncio: marks tests as async tests
|
|
timeout(seconds): marks tests with custom timeout duration
|
|
filterwarnings =
|
|
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 |