Compare commits
1 commit
main
...
feat/story
| Author | SHA1 | Date | |
|---|---|---|---|
| d699a94bc6 |
1 changed files with 31 additions and 0 deletions
31
CLAUDE.md
31
CLAUDE.md
|
|
@ -117,6 +117,37 @@ Lees het relevante patroon vóór je begint. Nooit uit het hoofd schrijven.
|
|||
|
||||
---
|
||||
|
||||
## Integration-task verificatie (smoke-test)
|
||||
|
||||
Voor stories met `*-component.tsx`: de Integration-task moet vóór
|
||||
`update_job_status(done)` een smoke-test draaien op de daadwerkelijke
|
||||
HTML-render:
|
||||
|
||||
```bash
|
||||
# In de worktree — pas ROUTE en SECTIONS aan per story
|
||||
ROUTE="/insights"
|
||||
SECTIONS=("Sprint Health" "Plan-quality" "Agent throughput" "Velocity" "Backlog health")
|
||||
|
||||
npm run dev > /tmp/dev.log 2>&1 &
|
||||
DEV_PID=$!
|
||||
sleep 8 # wacht tot Next.js compiled
|
||||
|
||||
curl -s http://localhost:3000${ROUTE} > /tmp/page.html
|
||||
|
||||
SMOKE_FAIL=
|
||||
for section in "${SECTIONS[@]}"; do
|
||||
grep -q "$section" /tmp/page.html || { echo "MISSING: $section"; SMOKE_FAIL=1; }
|
||||
done
|
||||
|
||||
kill $DEV_PID
|
||||
[ -z "$SMOKE_FAIL" ] # exit-code 1 als iets miste
|
||||
```
|
||||
|
||||
Als de smoke-test faalt: pas `page.tsx` aan zodat alle secties renderen, herhaal.
|
||||
Markeer Integration-task DONE pas wanneer alle verwachte sections in de HTML zitten.
|
||||
|
||||
---
|
||||
|
||||
## Env vars
|
||||
|
||||
```bash
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue