ralph-claude-code/tests/unit
Test User fdff095c18 feat(analyzer): add Claude CLI JSON format support and session management
- Extend parse_json_response() to support both flat and Claude CLI formats
  - Extract result, sessionId, and metadata fields
  - Support metadata.files_changed, metadata.has_errors, completion_status
  - Parse progress_indicators array for confidence boosting
- Add session management functions for continuity tracking:
  - store_session_id(): Persist session with ISO timestamp
  - get_last_session_id(): Retrieve stored session ID
  - should_resume_session(): Check session validity (24-hour expiration)
- Add get_epoch_seconds() to date_utils.sh for cross-platform epoch time
- Auto-persist sessionId to .session_id file during response analysis
- Add 16 new TDD tests for Claude CLI format and session management
- Update documentation for v0.9.6 (239 tests total)

Test count: 239 (up from 223)
2026-01-09 17:46:02 -07:00
..
test_cli_modern.bats fix(loop): replace non-existent --prompt-file with -p flag 2026-01-09 13:44:50 -07:00
test_cli_parsing.bats test(cli): add --allowed-tools test and code review report 2026-01-08 22:42:50 -07:00
test_exit_detection.bats Add comprehensive test infrastructure and core unit tests 2025-09-30 22:56:02 -07:00
test_json_parsing.bats feat(analyzer): add Claude CLI JSON format support and session management 2026-01-09 17:46:02 -07:00
test_rate_limiting.bats Add comprehensive test infrastructure and core unit tests 2025-09-30 22:56:02 -07:00