From 4da44baabec18a690e83cc5395d456532390f301 Mon Sep 17 00:00:00 2001 From: Matthew Valancy Date: Thu, 18 Jun 2026 16:34:08 -0700 Subject: [PATCH] docs(testing): one canonical guide for the unified harness; archive 3 stale guides MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Replaces the three guides that still documented the archived run-all-tests.js / run-pr-tests.js runners + old test-results/reports paths with a single accurate docs/testing/README.md (unified harness entry, dual HTML+video/JSON output, profiles, the domain tree, how to add a spec/sequence, auth helper). The stale pr-testing-guide.md / testing-architecture.md / test-organization.md are moved to archive/2026-06-test-cleanup/docs/testing/ (nothing linked them) — mineable, per the archive convention. Clears the test-refactor's remaining doc-debt. Co-Authored-By: Claude Opus 4.8 (1M context) --- .../docs}/testing/pr-testing-guide.md | 0 .../docs}/testing/test-organization.md | 0 .../docs}/testing/testing-architecture.md | 0 docs/testing/README.md | 73 +++++++++++++++++++ 4 files changed, 73 insertions(+) rename {docs => archive/2026-06-test-cleanup/docs}/testing/pr-testing-guide.md (100%) rename {docs => archive/2026-06-test-cleanup/docs}/testing/test-organization.md (100%) rename {docs => archive/2026-06-test-cleanup/docs}/testing/testing-architecture.md (100%) create mode 100644 docs/testing/README.md diff --git a/docs/testing/pr-testing-guide.md b/archive/2026-06-test-cleanup/docs/testing/pr-testing-guide.md similarity index 100% rename from docs/testing/pr-testing-guide.md rename to archive/2026-06-test-cleanup/docs/testing/pr-testing-guide.md diff --git a/docs/testing/test-organization.md b/archive/2026-06-test-cleanup/docs/testing/test-organization.md similarity index 100% rename from docs/testing/test-organization.md rename to archive/2026-06-test-cleanup/docs/testing/test-organization.md diff --git a/docs/testing/testing-architecture.md b/archive/2026-06-test-cleanup/docs/testing/testing-architecture.md similarity index 100% rename from docs/testing/testing-architecture.md rename to archive/2026-06-test-cleanup/docs/testing/testing-architecture.md diff --git a/docs/testing/README.md b/docs/testing/README.md new file mode 100644 index 00000000..3f05e414 --- /dev/null +++ b/docs/testing/README.md @@ -0,0 +1,73 @@ +# Testing + +GraphDone has one reproducible test entry — the **unified harness** — plus the +focused **smoke gate** that must pass before any "it works" claim. + +```bash +TEST_URL=http://localhost:3127 npm run test:smoke # THE GATE (blocking, ~30s) +npm run test:unified # full battery → dual report +npm run test:unified:smoke # fast subset (unit + gate + a focused e2e) +npm run test:unified:open # full battery, then open the HTML report +npm run test:unified:lib # the harness's own unit tests (node --test) +``` + +## Dual output (one run, two artifacts) +The harness writes to `test-artifacts/unified/`: +- **`report.html`** — human-readable: per-sequence pass/warn/fail with embedded + `` screenshots and `