chore(conductor): Add constraints against Mock-Rot to stabilization track
This commit is contained in:
@@ -3,6 +3,12 @@
|
||||
## Overview
|
||||
The goal of this track is to stabilize and unify the project's test suite. This involves resolving pervasive `asyncio` lifecycle errors, consolidating redundant testing paradigms (specifically manual GUI subprocesses), ensuring artifact isolation in `./tests/artifacts/`, implementing functional assertions for currently mocked-out tests, and updating documentation to reflect the finalized verification framework.
|
||||
|
||||
## Architectural Constraints: Combating Mock-Rot
|
||||
To prevent future testing entropy caused by "Green-Light Bias" and stateless Tier 3 delegation, this track establishes strict constraints:
|
||||
- **Ban on Aggressive Mocking:** Tests MUST NOT use `unittest.mock.patch` to arbitrarily hollow out core infrastructure (e.g., the `App` lifecycle or async loops) just to achieve exit code 0.
|
||||
- **Mandatory Centralized Fixtures:** All tests interacting with the GUI or AI client MUST use the centralized `app_instance` or `live_gui` fixtures defined in `conftest.py`.
|
||||
- **Structural Testing Contract:** The project workflow must enforce that future AI agents write integration tests against the live state rather than hallucinated mocked environments.
|
||||
|
||||
## Functional Requirements
|
||||
- **Asyncio Lifecycle Stabilization:**
|
||||
- Resolve `RuntimeError: Event loop is closed` across the suite.
|
||||
|
||||
Reference in New Issue
Block a user