|
|
1244bddc41
|
feat: Add Scenario 6 - Error Recovery test suite
Implements comprehensive error recovery testing with automatic crash
detection and hot-reload recovery mechanisms.
Features:
- ErrorRecoveryModule with controlled crash triggers
- Configurable crash types (runtime_error, logic_error, etc.)
- Auto-recovery via setState() after hot-reload
- Crash detection at specific frames
- Post-recovery stability validation (120 frames)
Test results:
- Crash detection: ✅ Frame 60 (as expected)
- Recovery time: 160.4ms (< 500ms threshold)
- State preservation: ✅ Frame count preserved
- Stability: ✅ 120 frames post-recovery
- Memory: ✅ 0 MB growth
- All assertions: ✅ PASSED
Integration:
- Added ErrorRecoveryModule (header + impl)
- Added test_06_error_recovery integration test
- Updated CMakeLists.txt with new test target
- CTest integration via ErrorRecovery test
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
|
2025-11-17 07:14:04 +08:00 |
|