# Implementation Plan: Testing & Simulation Consolidation Architecture reference: [docs/guide_simulations.md](../../../docs/guide_simulations.md) --- ## Phase 1: Migrate Manual Launchers to Pytest Fixtures Focus: Remove `subprocess.Popen` from visual verification scripts and convert them to proper pytest tests. - [ ] Task 1.1: Refactor `tests/visual_mma_verification.py` to be a standard pytest function: `def test_visual_mma_verification(live_gui):`. Remove all `subprocess.Popen` and directory changing logic. - [ ] Task 1.2: Audit `tests/` for any other file containing `subprocess.Popen` pointing to `gui_2.py` and refactor them similarly. ## Phase 2: Consolidate Simulation Scripts Focus: Ensure the `simulation/` directory integrates cleanly with the pytest framework or serves a distinct non-testing purpose. - [ ] Task 2.1: Audit the `simulation/` directory. If scripts there are just tests in disguise, move them into `tests/` and wrap them in the `live_gui` fixture. If they are intended as standalone interactive demos, clearly document their purpose and ensure they don't duplicate `conftest.py` logic unnecessarily.