ralph-claude-code/tests/unit
Frank Bria aa753c9158
fix: progress detection improvements (#141, #144) (#158)
* fix: progress detection improvements (#141, #144)

- Fix checkbox regex to exclude date entries like [2026-01-29] (#144)
- Add git commit detection: files changed in commits now count as progress (#141)
- Add 13 regression tests for progress detection and checkbox regex
- Update test count from 452 to 465

Fixes #141, Fixes #144

* fix(test): increase grep context to capture echo -1 line

* fix: count both committed and working tree changes as progress

When commits are made, now unions:
- Files changed in commits (loop_start_sha..current_sha)
- Unstaged changes (git diff HEAD)
- Staged changes (git diff --cached)

Uses sort -u to deduplicate before counting.

---------

Co-authored-by: Test User <test@example.com>
2026-02-02 11:30:17 -07:00
..
test_cli_modern.bats fix(setup): create .ralphrc with consistent tool permissions (#137) 2026-01-28 21:10:02 -07:00
test_cli_parsing.bats fix(setup): create .ralphrc with consistent tool permissions (#137) 2026-01-28 21:10:02 -07:00
test_enable_core.bats refactor(naming): remove @ prefix from on-disk filenames (#131) 2026-01-26 15:40:27 -07:00
test_exit_detection.bats fix: progress detection improvements (#141, #144) (#158) 2026-02-02 11:30:17 -07:00
test_json_parsing.bats fix: extract denied commands from correct JSON path (Issue #143) 2026-02-01 13:43:47 -07:00
test_ralph_enable.bats refactor(naming): remove @ prefix from on-disk filenames (#131) 2026-01-26 15:40:27 -07:00
test_rate_limiting.bats feat(structure): migrate Ralph files to .ralph/ subfolder (#109) 2026-01-20 23:22:30 -07:00
test_session_continuity.bats fix: progress detection improvements (#141, #144) (#158) 2026-02-02 11:30:17 -07:00
test_task_sources.bats feat(enable): add ralph-enable wizard for existing projects (v0.11.0) (#124) 2026-01-25 14:37:25 -07:00
test_wizard_utils.bats fix(wizard): redirect prompts to stderr for clean command substitution (#130) 2026-01-26 14:47:06 -07:00