Skip to content

Commit 27df197

Browse files
authored
Merge pull request #60 from frankbria/feature/project-setup-tests
test(setup): add 36 comprehensive tests for setup.sh
2 parents 4a83b87 + a6587aa commit 27df197

2 files changed

Lines changed: 475 additions & 2 deletions

File tree

CLAUDE.md

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co
66

77
This is the Ralph for Claude Code repository - an autonomous AI development loop system that enables continuous development cycles with intelligent exit detection and rate limiting.
88

9-
**Version**: v0.9.3 | **Tests**: 165 passing (100% pass rate) | **CI/CD**: GitHub Actions
9+
**Version**: v0.9.4 | **Tests**: 201 passing (100% pass rate) | **CI/CD**: GitHub Actions
1010

1111
## Core Architecture
1212

@@ -272,7 +272,7 @@ Ralph uses advanced error detection with two-stage filtering to eliminate false
272272

273273
## Test Suite
274274

275-
### Test Files (165 tests total)
275+
### Test Files (201 tests total)
276276

277277
| File | Tests | Description |
278278
|------|-------|-------------|
@@ -284,6 +284,7 @@ Ralph uses advanced error detection with two-stage filtering to eliminate false
284284
| `test_loop_execution.bats` | 20 | Integration tests |
285285
| `test_edge_cases.bats` | 20 | Edge case handling |
286286
| `test_installation.bats` | 14 | Global installation/uninstall workflows |
287+
| `test_project_setup.bats` | 36 | Project setup (setup.sh) validation |
287288

288289
### Running Tests
289290
```bash
@@ -299,6 +300,19 @@ bats tests/unit/test_cli_parsing.bats
299300

300301
## Recent Improvements
301302

303+
### Project Setup Tests (v0.9.4)
304+
- Added 36 comprehensive tests for `setup.sh` project initialization script
305+
- Tests cover: directory creation, subdirectory structure, template copying, git initialization
306+
- Template copying verification for PROMPT.md, @fix_plan.md, @AGENT.md
307+
- Git repository validation: .git exists, valid repo, initial commit, correct message
308+
- README.md creation and content verification
309+
- Custom and default project name handling
310+
- Working directory behavior (nested directories, relative paths)
311+
- Error handling: missing templates, missing PROMPT.md
312+
- Output message validation (startup, completion, next steps)
313+
- Edge cases: spaces in names, existing directories
314+
- Test count: 201 (up from 165)
315+
302316
### Installation Tests (v0.9.3)
303317
- Added 14 comprehensive tests for `install.sh` global installation script
304318
- Tests cover: directory creation, command installation, template copying, lib copying

0 commit comments

Comments
 (0)