[Testing] Make test:integration:docker fail when tests fail and run the full suite
Overview & Background
test:integration:docker is defined as docker compose up -d postgres && vitest run tests/integration/stream-lifecycle.test.ts; docker compose stop postgres. The ; before the stop command means the npm script's exit code is that of docker compose stop, not of vitest — a failing (or crashing) integration suite still exits 0, so the command always reports success. On top of that, the name promises the integration suite but only runs one file, silently skipping the other 12 specs in backend/tests/integration/.
Technical Specification & Architecture
- Capture vitest's exit code before cleanup in
backend/package.json:13:vitest run tests/integration; rc=$?; docker compose stop postgres; exit $rc. - Run the whole
tests/integrationdirectory instead of a single file. - Consider a compose health-gated wait so vitest doesn't race Postgres startup.
Target Files
backend/package.json
Acceptance Criteria
- [ ] The script exits non-zero when any integration test fails.
- [ ] All specs under
backend/tests/integration/execute. - [ ] A deliberately failing test proves the exit code propagates.
@ruthoreaji-123 has applied to work on this issue as part of the Stellar Wave Program's 11th wave.
hello maintainer please can i be assigned to this issue. i have reviewed the description, and i would be able to deliver as described. Thanks for your consideration.
ℹ️ Repo Maintainers: To accept this application, review their application or assign @ruthoreaji-123 to this issue.
@Ayomikun2005 has applied to work on this issue as part of the Stellar Wave Program's 11th wave.
allow me do this
ℹ️ Repo Maintainers: To accept this application, review their application or assign @Ayomikun2005 to this issue.
Congratulations, @Ayomikun2005! 🎉 Your application was accepted by the repo's maintainers, and the issue is due on November 25, 2026.
🧑💻 @Ayomikun2005: Please resolve the issue such that the repo's maintainers have enough time to review your contribution before the due date. You'll earn Points for completing the issue on-time, which will make you eligible for a share of the Stellar Wave Program's reward pool.
[!WARNING] When opening a PR, please link it to this issue to ensure it gets tracked accurately. Points are awarded when this issue is marked as completed by the maintainer.
🤠 Repo maintainers: Please keep an eye on the contributor's progress and review their work before the due date. You can manage this issue, including adjusting its complexity and points, here.
🌊 Happy Wave 🌊
This issue has been completed by @Ayomikun2005 as part of the Stellar Wave Program's 11th Wave 🥳
😎 @Ayomikun2005: You earned 200 Points for completing this issue! Once the Wave's rewards are finalized, you'll be eligible for a percentage of the Wave's reward pool based on the percentage of total points you've earned. Learn more here. You can also Leave a review to share your experience working on this issue.
🧑💻 Repo maintainers: How'd the contributor do? Leave a review to share your experience working with them.