Skip to content

refactor(tests): register higher-tier suites and colocate units - #1715

Merged
luokerenx4 merged 3 commits into
devfrom
codex/test-suite-registry
Oct 1, 2026
Merged

luokerenx4 merged 3 commits into
devfrom
codex/test-suite-registry

Conversation

@luokerenx4

Copy link
Copy Markdown
Contributor

Existing tests mixed units, module integration and process journeys in implementation folders, while 18 assertion matrices duplicated test titles and made ordinary unregistered units look like missing coverage. This change completes the existing-test hierarchy plan: colocated units need no registration; integration and E2E suites live under their topic directories and register files or dedicated runners once.

Result

  • Inventory: 780 unregistered unit/component files, 135 integration files and 8 E2E files. The 99 suite records also account for 27 existing dedicated acceptance commands. Registration records purpose and scope limits, not an assertion-level product-coverage score.
  • Relocate 167 existing files with zero owner/lane/area/package routing differences for every retained one-to-one file. Split the existing TWSE and IBKR model cases beside their implementations; no product code changes.
  • Remove all 18 coverage.json matrices and their parser. Preserve the original 15 critical assertion references directly in tests/gates.json, including rejection of missing/skipped/failed evidence and narrowed gate runs.
  • Expose --tier, --suite, test:unit, test:integration, test:e2e and test:suites. Tier is independent of execution conditions; external/live/native runners remain explicit. Rename the misleading integration Vitest config, preserve package-local selection, and remove redundant area lists/configs.
  • Typecheck centralized specs in both source-contract and dev clean-build CI. Root harness dependencies reuse the versions already installed by their owning packages; production ownership is unchanged.
  • Retire the completed plan and move durable rules into the testing guide.

Subtraction, without new tests

Net 14 existing cases removed: six IBKR constructor-default checks, five terminal CSS/source-text checks, two third-party API-shape/self-equality checks, and one obsolete partial-registration framework case. Existing IBKR wire formatting/debug rendering and terminal behavior tests remain. TWSE/IBKR colocation produces three more spec files overall, despite fewer cases. No new test cases or product assertions were added. Earlier pruning and the first five integration moves were delivered in #1695 and #1712.

Verification

Verified against current dev (b92c5abf), including #1713's relocated UI changes:

  • Full pnpm test: 895 files passed, 1 skipped; 7,573 cases passed, 8 existing skips, zero failures.
  • pnpm test:integration: 112 files passed, 1 skipped; 1,509 cases passed, 6 existing skips. Both hermetic module integration and the five serialized local integration files executed.
  • pnpm test:critical: 18 passed; all 15 required assertion references satisfied, none skipped or omitted.
  • pnpm test:contract:workflow: 104 passed.
  • Root, UI, centralized tests, CLI, UTA, Guardian runtime, IBKR and OpenTypeBB typechecks passed.
  • Inventory validation, all 167 routing comparisons, stale-path scan and git diff --check passed. AST comparison against dev: 14 fewer test declarations and 51 fewer expectations.

This is local source/fixture acceptance. Existing platform skips remain; no real broker, public provider, packaged Electron, signed artifact or separate native-platform acceptance was run. Registration completeness does not claim that missing product coverage has been filled. Draft for maintainer acceptance; do not merge automatically.

Record central suite typechecking in CI and derive central area routing only from the suite registry. Retire the completed plan under the repository plan contract.

Acceptance: full Vitest 895 passed files / 7573 passed cases / 8 existing skips; integration 1509 passed / 6 existing skips; workflow 104 passed; critical 18 passed including all 15 required evidence refs. Root, UI, central tests and CLI/UTA/Guardian/IBKR/OpenTypeBB typechecks passed. All 167 one-to-one relocations preserve owner/lane/area/package selection. Net 14 existing cases removed; no new cases or product assertions. Native, artifact, external-provider and live-paper acceptance is not claimed.
@luokerenx4 luokerenx4 added workflow:parallel Autonomous parallel contribution; leave open for later acceptance theme:reliability Failure recovery, retries, loading, or resilience area:devtools Developer tools, logs, or diagnostic surfaces review:deep Requires deliberate human review before merge labels Oct 1, 2026
@vercel

vercel Bot commented Oct 1, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
openalice-demo Ready Ready Preview Oct 1, 2026 5:37pm UTC

Request Review

@luokerenx4
luokerenx4 marked this pull request as ready for review October 1, 2026 17:40
@luokerenx4
luokerenx4 merged commit a9f3786 into dev Oct 1, 2026
5 of 6 checks passed
@luokerenx4
luokerenx4 deleted the codex/test-suite-registry branch October 1, 2026 17:40

This branch was successfully deployed

1 active deployment
Preview — 3a2e05e6 Deployed Oct 1, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:devtools Developer tools, logs, or diagnostic surfaces review:deep Requires deliberate human review before merge theme:reliability Failure recovery, retries, loading, or resilience workflow:parallel Autonomous parallel contribution; leave open for later acceptance

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant