48 lines
1.4 KiB
Markdown
48 lines
1.4 KiB
Markdown
# PRD: Hello Ralph Workflow Test
|
|
|
|
## 1. Introducere
|
|
Proiect minimal pentru testare workflow Ralph: PRD → Stories → Implementare automată
|
|
|
|
## 2. Obiective
|
|
### Obiectiv Principal
|
|
- Validare completă workflow Ralph pe moltbot
|
|
|
|
### Metrici de Succes
|
|
- PRD generat corect
|
|
- Stories executate automat de Ralph (Sonnet)
|
|
- Code commits cu quality checks
|
|
|
|
## 3. User Stories
|
|
|
|
### US-001: Setup proiect Node.js
|
|
**Ca** developer
|
|
**Vreau** un proiect Node.js minimal cu package.json
|
|
**Pentru că** validez că Ralph poate initializa proiecte
|
|
|
|
**Acceptance Criteria:**
|
|
- package.json există cu name="hello-ralph-test", version="1.0.0"
|
|
- README.md există cu descriere proiect
|
|
- .gitignore există cu node_modules/
|
|
|
|
### US-002: Funcție hello simpla
|
|
**Ca** user
|
|
**Vreau** o funcție hello(name) care returnează salut
|
|
**Pentru că** validez că Ralph poate scrie cod funcțional
|
|
|
|
**Acceptance Criteria:**
|
|
- src/hello.js există
|
|
- Funcție hello(name) returnează "Hello, {name}!"
|
|
- Exportată ca module.exports = { hello }
|
|
- Funcția trimite toLowerCase pe name
|
|
|
|
### US-003: Test pentru hello
|
|
**Ca** developer
|
|
**Vreau** un test simplu pentru funcția hello
|
|
**Pentru că** validez quality checks Ralph
|
|
|
|
**Acceptance Criteria:**
|
|
- package.json include "test" script și dev dependency jest
|
|
- tests/hello.test.js există
|
|
- Test verifică hello("World") === "Hello, world!"
|
|
- npm test passes
|