- conftest.py: enforce that @pytest.mark.skip requires an issue link in the reason string; bare skips are converted to failures at report time. Env-var-gated skipif conditions and quarantine-marked tests are exempt. - pytest.ini: add --strict-markers and centralise asyncio/testpaths config. - scripts/flake_detector.py: rolling JSON history + 95% consistency check; exits non-zero when flaky tests are detected so CI can gate on it. - tests/quarantine/: holding area for quarantined tests with README. - docs/QUARANTINE_PROCESS.md: Prevention→Detection→Correction workflow documenting when/how to quarantine, escalation (30-day rule), and un-quarantine steps. Fixes #1094 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
15 lines
384 B
INI
15 lines
384 B
INI
[pytest]
|
|
testpaths = tests
|
|
asyncio_mode = auto
|
|
|
|
# Show full diffs and verbose skip/fail reasons
|
|
addopts =
|
|
-v
|
|
--tb=short
|
|
--strict-markers
|
|
|
|
# Markers registered here (also registered in conftest.py for programmatic use)
|
|
markers =
|
|
integration: mark test as integration test (requires MCP servers)
|
|
quarantine: mark test as quarantined (flaky/broken, tracked by issue)
|