docs: add TESTING.md; trim duplicated test comments to pointers (#487) - #494
Conversation
SummaryThe following content is AI-generated and provides a summary of the pull request: docs: Add
|
There was a problem hiding this comment.
This is a clean, documentation-only PR. The changes are well-structured and accurate based on the code inspected. The TESTING.md content aligns with the actual implementation in test/utils.js, MyInMemorySpanExporter.js, MyInMemoryMetricReader.js, and the test files. The comment trimming in the test files correctly reduces duplication while preserving just enough context for readers to follow the pointer to TESTING.md.
No substantive issues were found — the logic in all modified test files is unchanged (comment-only edits as stated in the PR description), the TESTING.md accurately describes the infrastructure, and the README link is correctly placed.
PR Bot Information
Version: 1.29.33
- Correlation ID:
eaac1f50-9cd2-11f1-8aed-9dead314eb89 - Event Trigger:
pull_request.opened - File Content Strategy: Full file content
- LLM:
anthropic--claude-4.6-sonnet
What
Consolidates the hard-won test-suite knowledge that was scattered (and duplicated) across
test/**comment blocks into a single, authoritative top-levelTESTING.md, then trims the duplicated in-file comments down to short pointers.New
TESTING.mdcovers:npm test/ vitest, sqlite default; CI matrix Node 22/24 × cds 9/10; where the bookshop app lives)retry: 2, outbox clear/settle; how the HANA path is signalled viaTELEMETRY_TEST_HANA; HANA is a separateworkflow_dispatch-only workflow, not PR CI).cdsrc.jsonprofiles (not env) — the profile table + compose syntax + the Tests configure CDS via process.env.cds_requires_* string-JSON instead of profiles/config #486 load-order gotcha (don't reintroduceprocess.env.cds_*)MyInMemorySpanExporter/MyInMemoryMetricReader, DELTA temporality, the no-require('@sap/cds')-at-top rule)test/utils.jsfrom Centralize duplicated queue/test helpers (clearOutbox, flushSpans, eventually/expectEventually, meaningful) #488) and the flush+poll patternasExternalClientstartup > NO_TELEMETRY=truelocal-env artifact; the internal-registry lockfile trap)Trimmed duplicated comments to pointers (comment-only, no logic change) in:
tracing-scheduled,tracing-outboxed-batch,tracing-messaging-inboxed,tracing-messaging-persistent-outbox,tracing-messaging.js,tracing-mt,metrics-outbox-multitenant. The repeatedcds.spawn on sqliteskip rationale, the shared-HANA-container outbox-bleed explanation, and the multitenancy Service-Manager note now live in TESTING.md; each site keeps a one-line pointer. Genuinely local rationale (timezone-bug explanation, per-test tree shapes,test/utils.jsown doc comments) is left untouched.README gets a one-line link to TESTING.md under the contributing section.
Notes
test/**starts with//). No change to test logic, assertions, config,vitest.config.mjs,.cdsrc.json, the exporters/reader, or the Eliminate all test skips and CI test-subset exclusions (sqlite + HANA) #477 gated skip logic.oxfmt --checkclean; changed files lint clean;grep -c int.repositories.cloud.sap package-lock.json= 0 (lockfile untouched).closes #487