ralph-claude-code/tests/unit
frankbria fffcc26427 test(cli): add comprehensive CLI argument parsing tests
Add 26 new BATS tests validating all CLI flags in ralph_loop.sh:

- Help flag tests (2): --help, -h short flag
- Flag value tests (6): --calls, --prompt, --monitor, --verbose, --timeout
- Status flag tests (2): --status with/without status.json
- Circuit breaker tests (2): --reset-circuit, --circuit-status
- Invalid input tests (3): unknown flag, invalid timeout, invalid format
- Multiple flags tests (3): combinations, all flags, early exit
- Flag order tests (2): verify order independence
- Short flag tests (6): -c, -p, -s, -m, -v, -t equivalence

Test strategy uses --help as early-exit escape to validate parsing
without triggering main loop execution.

Closes #10
2026-01-08 22:38:23 -07:00
..
test_cli_modern.bats feat(cli): add modern CLI commands with JSON output support (Phase 1.1) 2026-01-08 20:39:18 -07:00
test_cli_parsing.bats test(cli): add comprehensive CLI argument parsing tests 2026-01-08 22:38:23 -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(cli): add modern CLI commands with JSON output support (Phase 1.1) 2026-01-08 20:39:18 -07:00
test_rate_limiting.bats Add comprehensive test infrastructure and core unit tests 2025-09-30 22:56:02 -07:00