[Docs] Testing guide: running and debugging the integration suites
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 86/100
- Tipo di issue
- Documentazione
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- postgresql, typescript
- Ambito
- backend, documentation, testing
Direzione di ricerca
Inizia da CONTRIBUTING.md, backend/package.json e backend/vitest.config.mts per individuare le suite di test, gli script npm e le impostazioni delle porte; consulta tests/factories per le indicazioni sulle factory. Documenta come eseguire una suite, un file o un singolo test, esaminare un test di integrazione non riuscito e ripulire un cluster incorporato obsoleto, comprese le differenze tra macOS e Linux. Il lavoro è completo quando la guida è collegata dal README e un reviewer può seguire i relativi comandi su un clone pulito.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Phase: 9 — Deploy & CI (see ROADMAP.md)
Description
CONTRIBUTING.md covers setup and what to run before a PR, but not how the self-contained embedded-Postgres integration suites work: which ports they use, how to run one file or one test, how to keep a database around to inspect after a failure, and what to do when a stale cluster blocks a port. New contributors lose time to this, and booking/referral/order work requires integration tests.
Requirements & context
What to do:
- Add a testing section to CONTRIBUTING.md (or
backend/tests/README.md) covering unit vs integration vs property vs testnet suites and their npm scripts. - Document per-suite ports, running a single file/test, debugging a failing test, and cleaning up stale embedded clusters.
- Explain how to use the factories in
tests/factoriesfor new tests.
Files likely involved:
CONTRIBUTING.mdbackend/tests/factories/index.tsbackend/vitest.config.mtsbackend/package.json
Edge cases / constraints:
- Keep it accurate for macOS and Linux; note anything that differs.
- Follow the
ARCHITECTURE_ESSENTIALS.mdhard rules (module boundaries, append-only orders, DB-level booking guarantees, no invented schema fields without documenting them forARCHITECTURE.md§4 in adocs.d/fragment).
Suggested execution
- Fork the repo and branch off
main:git checkout -b docs/testing-guide-running-and-debugging-the-integrat - Implement the changes above. If you hit a design question the issue doesn't answer, comment here before guessing.
- Run
npm run typecheck,npm testandnpm run test:integrationinbackend/. Booking, referral, order and payment flows need integration tests, not only unit tests (AGENTS.md). - Commit with a clear message, for example:
docs(docs): Testing guide: running and debugging the integration suites - Open a PR against
mainwithCloses #<this issue number>in the description.
Definition of done
- Testing guide merged
- Linked from the README
- A
changelog.d/<issue-number>-<short-slug>.mdfragment (seechangelog.d/README.md), and, if models or endpoints changed, the newARCHITECTURE.md§4 /docs/api/README.mdlines in adocs.d/<issue-number>-<short-slug>.mdfragment (seedocs.d/README.md) - CI green
How this will be reviewed
Reviewer follows the guide on a clean clone and checks each command works as written.
Guidelines
- Claiming: comment to claim before you start, and check nobody else is assigned.
- PR description: say what changed and why, include
Closes #<issue>, and paste test output (plus screenshots for UI work). - Timeframe: open a PR within 7 days of assignment. If you get stuck, say so in the issue early rather than going quiet.
Not blocked by: any other open issue.
- Lingua principale
- TypeScript
- Stelle
- 11
- Fork
- 57
- Merge medio
- 20h 41m
- PR unite (30g)
- 67
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di DocForum/docforum-core
-
enhancement
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
DocForum/docforum-core#372 ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement
Difficoltà 4/5 3-5 giorni Idoneità per principianti 52/100
DocForum/docforum-core#371 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement
Difficoltà 4/5 3-5 giorni Idoneità per principianti 55/100
DocForum/docforum-core#370 ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement
Difficoltà 4/5 3-5 giorni Idoneità per principianti 66/100
DocForum/docforum-core#368 ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement
Difficoltà 3/5 1-2 giorni Idoneità per principianti 76/100
DocForum/docforum-core#367 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di DocForum/docforum-core
Issue simili
-
clawsweeper:intake:bug clawsweeper:intake:needs-environment
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
openclaw/openclaw#212827 · 1 commento · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
KT-2245 e2e specs that call the backend directly fall back to the developer's own Kronn on :3140Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
Use one constant for the 10,000-character input limitForse già presa @NginxL l’ha presa oggi. Apertagood first issue refactor
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
aniru-dh21/snap-validate#51 ·
I maintainer di solito rispondono entro 1 giorno
-
dependencies effort: small good first issue priority: low
Difficoltà 1/5 1-3 ore Idoneità per principianti 88/100
TMHSDigital/screencast-mcp#509 ·
I maintainer di solito rispondono entro 1 giorno
-
from-review tech-debt testing
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
blamechris/chroxy#9520 ·
I maintainer di solito rispondono entro 1 giorno