McRogueFace/tests
John McCardle 18cfe93a44 Fix --exec interactive prompt bug and create comprehensive test suite
Major fixes:
- Fixed --exec entering Python REPL instead of game loop
- Resolved screenshot transparency issue (requires timer callbacks)
- Added debug output to trace Python initialization

Test suite created:
- 13 comprehensive tests covering all Python-exposed methods
- Tests use timer callback pattern for proper game loop interaction
- Discovered multiple critical bugs and missing features

Critical bugs found:
- Grid class segfaults on instantiation (blocks all Grid functionality)
- Issue #78 confirmed: Middle mouse click sends 'C' keyboard event
- Entity property setters have argument parsing errors
- Sprite texture setter returns improper error
- keypressScene() segfaults on non-callable arguments

Documentation updates:
- Updated CLAUDE.md with testing guidelines and TDD practices
- Created test reports documenting all findings
- Updated ROADMAP.md with test results and new priorities

The Grid segfault is now the highest priority as it blocks all Grid-based functionality.
2025-07-03 19:25:49 -04:00
..
.automation_screenshot_test.py.swp Fix --exec interactive prompt bug and create comprehensive test suite 2025-07-03 19:25:49 -04:00
WORKING_automation_test_example.py Fix --exec interactive prompt bug and create comprehensive test suite 2025-07-03 19:25:49 -04:00
api_createScene_test.py Fix --exec interactive prompt bug and create comprehensive test suite 2025-07-03 19:25:49 -04:00
api_keypressScene_test.py Fix --exec interactive prompt bug and create comprehensive test suite 2025-07-03 19:25:49 -04:00
api_registerPyAction_issue2_test.py Fix --exec interactive prompt bug and create comprehensive test suite 2025-07-03 19:25:49 -04:00
api_sceneUI_test.py Fix --exec interactive prompt bug and create comprehensive test suite 2025-07-03 19:25:49 -04:00
api_setScene_currentScene_test.py Fix --exec interactive prompt bug and create comprehensive test suite 2025-07-03 19:25:49 -04:00
api_timer_test.py Fix --exec interactive prompt bug and create comprehensive test suite 2025-07-03 19:25:49 -04:00
automation_click_issue78_analysis.py Fix --exec interactive prompt bug and create comprehensive test suite 2025-07-03 19:25:49 -04:00
automation_click_issue78_test.py Fix --exec interactive prompt bug and create comprehensive test suite 2025-07-03 19:25:49 -04:00
automation_screenshot_test.py Fix --exec interactive prompt bug and create comprehensive test suite 2025-07-03 19:25:49 -04:00
automation_screenshot_test_simple.py Fix --exec interactive prompt bug and create comprehensive test suite 2025-07-03 19:25:49 -04:00
debug_render_test.py Fix --exec interactive prompt bug and create comprehensive test suite 2025-07-03 19:25:49 -04:00
empty_script.py Fix --exec interactive prompt bug and create comprehensive test suite 2025-07-03 19:25:49 -04:00
exit_immediately_test.py Fix --exec interactive prompt bug and create comprehensive test suite 2025-07-03 19:25:49 -04:00
force_non_interactive.py Fix --exec interactive prompt bug and create comprehensive test suite 2025-07-03 19:25:49 -04:00
screenshot_transparency_fix_test.py Fix --exec interactive prompt bug and create comprehensive test suite 2025-07-03 19:25:49 -04:00
simple_timer_screenshot_test.py Fix --exec interactive prompt bug and create comprehensive test suite 2025-07-03 19:25:49 -04:00
test_stdin_theory.py Fix --exec interactive prompt bug and create comprehensive test suite 2025-07-03 19:25:49 -04:00
trace_exec_behavior.py Fix --exec interactive prompt bug and create comprehensive test suite 2025-07-03 19:25:49 -04:00
trace_interactive.py Fix --exec interactive prompt bug and create comprehensive test suite 2025-07-03 19:25:49 -04:00
ui_Entity_issue73_test.py Fix --exec interactive prompt bug and create comprehensive test suite 2025-07-03 19:25:49 -04:00
ui_Frame_test.py Fix --exec interactive prompt bug and create comprehensive test suite 2025-07-03 19:25:49 -04:00
ui_Frame_test_detailed.py Fix --exec interactive prompt bug and create comprehensive test suite 2025-07-03 19:25:49 -04:00
ui_Grid_test.py Fix --exec interactive prompt bug and create comprehensive test suite 2025-07-03 19:25:49 -04:00
ui_Grid_test_no_grid.py Fix --exec interactive prompt bug and create comprehensive test suite 2025-07-03 19:25:49 -04:00
ui_Grid_test_simple.py Fix --exec interactive prompt bug and create comprehensive test suite 2025-07-03 19:25:49 -04:00
ui_Sprite_issue19_test.py Fix --exec interactive prompt bug and create comprehensive test suite 2025-07-03 19:25:49 -04:00
ui_UICollection_issue69_test.py Fix --exec interactive prompt bug and create comprehensive test suite 2025-07-03 19:25:49 -04:00
validate_screenshot_test.py Fix --exec interactive prompt bug and create comprehensive test suite 2025-07-03 19:25:49 -04:00
working_timer_test.py Fix --exec interactive prompt bug and create comprehensive test suite 2025-07-03 19:25:49 -04:00