ralph-claude-code/tests/helpers
Test User b06d979b0b test(import): add 22 comprehensive tests for ralph_import.sh
Add integration tests for PRD to Ralph format conversion:
- File format support tests (.md, .txt, .json)
- Output file creation tests (PROMPT.md, @fix_plan.md, specs/requirements.md)
- Project naming tests (custom names, auto-detection from filename)
- Error handling tests (missing files, dependencies, conversion failures)
- Help and usage tests
- Full workflow integration tests
- Edge case handling (hyphens, uppercase, subdirectory paths)

Test infrastructure:
- Mock ralph-setup command using PATH manipulation
- Mock Claude Code CLI for isolated conversion testing
- Added create_sample_prd_txt() fixture helper

Test count: 223 (up from 201)
2026-01-09 16:13:23 -07:00
..
fixtures.bash test(import): add 22 comprehensive tests for ralph_import.sh 2026-01-09 16:13:23 -07:00
mocks.bash Add comprehensive test infrastructure and core unit tests 2025-09-30 22:56:02 -07:00
test_helper.bash Add comprehensive test infrastructure and core unit tests 2025-09-30 22:56:02 -07:00