Understand Ralph test organization
mainTests are organized into three main categories based on scope and execution speed:
- Unit (
tests/unit/): Fast, isolated function tests using mocks. Typically <1s per file. - Integration (
tests/integration/): Medium speed (1-5s per file). Tests component interactions using real filesystem and git. - E2E (
tests/e2e/): Slow (>5s per file). Tests complete workflows using a full environment and a mock Claude CLI harness.
Shared utilities like assertions, mocks, and fixtures are located in tests/helpers/.