docs: add Testing section to README with npm test and curl script instructions
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
44acd96ee4
commit
ab880e0b1f
1 changed files with 20 additions and 0 deletions
20
README.md
20
README.md
|
|
@ -137,6 +137,26 @@ npx prisma db seed
|
|||
```bash
|
||||
npm run dev
|
||||
```
|
||||
|
||||
### Testing
|
||||
|
||||
**Unit tests (Vitest, geen database vereist):**
|
||||
|
||||
```bash
|
||||
npm test
|
||||
```
|
||||
|
||||
Verwacht: alle 69 tests slagen, 0 failures.
|
||||
|
||||
**API curl-tests (vereist lopende dev server + API token):**
|
||||
|
||||
```bash
|
||||
# Zie scripts/README.md voor setup-instructies
|
||||
bash scripts/test-api.sh
|
||||
```
|
||||
|
||||
De curl-tests dekken alle 7 API-endpoints: auth (401), demo-blokkering (403), inputvalidatie (400) en happy paths. Zie `docs/scrum4me-test-plan.md` voor het volledige testplan.
|
||||
|
||||
## Database
|
||||
|
||||

|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue