2.9 KiB
2.9 KiB
Implementation Plan: Test Suite Stabilization & Consolidation (test_stabilization_20260302)
Phase 1: Infrastructure & Paradigm Consolidation
- Task: Initialize MMA Environment
activate_skill mma-orchestrator - Task: Setup Artifact Isolation Directories
- Create
./tests/artifacts/and./tests/logs/with appropriate.gitignore.
- Create
- Task: Migrate Manual Launchers to
live_guiFixture- Refactor
tests/visual_mma_verification.pyto use thelive_guifixture. - Audit
simulation/andtests/for other manual subprocess launchers and refactor.
- Refactor
- Task: Conductor - User Manual Verification 'Phase 1: Infrastructure & Consolidation' (Protocol in workflow.md)
Phase 2: Asyncio Stabilization & Logging
- Task: Audit and Fix
conftest.pyLoop Lifecycle- Ensure all fixtures correctly handle loop cleanup and task cancellation.
- Task: Resolve
Event loop is closedin Core Test Suite- Update identified files to pass active loops and use
ThreadPoolExecutor.
- Update identified files to pass active loops and use
- Task: Implement Centralized Sectioned Logging Utility
- Route
VerificationLoggeroutput to./tests/logs/.
- Route
- Task: Conductor - User Manual Verification 'Phase 2: Asyncio & Logging' (Protocol in workflow.md)
Phase 3: Assertion Implementation & Legacy Cleanup
- Task: Replace
pytest.failwith Functional Assertions- Focus on
api_events,execution_engine,token_usage, andagent_capabilities.
- Focus on
- Task: Resolve Simulation Entry Count Regressions
- Fix entry count assertions in
test_context_sim_liveand align mocks.
- Fix entry count assertions in
- Task: Remove Legacy
gui_legacyTest Imports & File- Refactor
tests/test_gui_events.py,test_gui_updates.py, andtest_gui_diagnostics.pyto usegui_2.py. - Delete
gui_legacy.pyfrom the project root.
- Refactor
- Task: Conductor - User Manual Verification 'Phase 3: Assertions & Legacy Cleanup' (Protocol in workflow.md)
Phase 4: Documentation & Final Verification
- Task: Model Switch Request
- Ask the user to run the
/modelcommand to switch to a high reasoning model for the documentation phase. Wait for their confirmation before proceeding.
- Ask the user to run the
- Task: Update Core Documentation & Workflow Contract
- Update
Readme.mdregarding the test framework and artifact/log locations. - Update
docs/guide_simulations.mdto detail thelive_guifixture requirement and removal of manual simulation scripts. - Update
conductor/workflow.mdto establish a strict "Structural Testing Contract": explicitly banning arbitraryunittest.mock.patchon core infra and mandating the use of centralized fixtures for all future Tier 2/Tier 3 agents.
- Update
- Task: Full Suite Validation & Warning Cleanup
- Task: Final Artifact Isolation Verification
- Task: Conductor - User Manual Verification 'Phase 4: Documentation & Final Verification' (Protocol in workflow.md)