1.4 KiB
1.4 KiB
Track Specification: Testing & Simulation Consolidation
Overview
Currently, the codebase has redundant testing paradigms. Some tests (tests/visual_sim_gui_ux.py) properly use the live_gui fixture managed by pytest in conftest.py. However, other visual verification scripts (like tests/visual_mma_verification.py and potentially files in simulation/) reinvent the wheel by manually opening subprocesses with subprocess.Popen to launch the GUI. This fragmentation causes tech debt and test flakiness.
Current State Audit
- Redundant Subprocess Launching:
tests/visual_mma_verification.pymanually spawnsgui_2.pyviasubprocess.Popeninstead of using theconftest.pylive_guifixture. - Simulation Redundancy: The
simulation/directory containssim_base.py,workflow_sim.py, etc., that also useApiHookClientbut may be reinventing pytest workflows outside of the standard test runner.
Desired State
- All "visual" or "integration" testing scripts that interact with the live GUI via
ApiHookClientMUST use thelive_guipytest fixture and be executed viapytest. - Any standalone scripts in
tests/that manually spawnsubprocess.Popenforgui_2.pymust be rewritten as standard pytest functions taking thelive_guiargument.
Technical Constraints
- No tests should manually spawn
gui_2.py. They must rely onconftest.py. - Keep testing framework unified strictly under
pytest.