TEST-UNIFY-0: unified dual-output test harness (reusable libs, HTML+images+video / JSON)#120
Merged
Merged
Conversation
…ase 0, non-destructive) One reproducible entry (npm run test:unified) runs a declarative profile of sequences and emits BOTH a human-readable report.html (per-sequence pass/warn/fail with embedded <img> screenshots + <video> .webm clips) AND a machine-parsable report.json (schema graphdone.unified-report/1) + per-sequence JSON. Reusable lib (tests/lib/): - reporting/aggregate.mjs — pure rollup (rollupStatus/statusFromCounts/sumCounts/ buildReport), node:test 10/10 - reporting/json.mjs, reporting/html.mjs — dual reporters (html embeds images+video) - runner/runSequence.mjs — argv-array spawn, captures exit/stdout/duration - adapters/playwright.mjs — parse PW JSON + harvest video/screenshot attachments - adapters/vitest.mjs — parse vitest JSON into case counts - sequences/unified.config.mjs — declarative sequences + profiles (smoke|pr|full|report) - run-unified.mjs — entry; copies artifacts into assets/, writes both reports, exit code = rollup status (doubles as a gate) Phase 0 is additive only — no specs moved/deleted; THE GATE unchanged. Verified: smoke profile 212✓ (web unit 205 + gate 5 + auth e2e 2); showcase sequence harvests 5 .webm + 5 screenshots and embeds them (5 <video> + 5 <img>). Plan for phases 1-6 (clean-tree reorg) saved at docs/test-tree-refactor-plan.json. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
🧪 Comprehensive Test Suite
Full-stack smoke gate runs in the CI workflow. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Phase 0 of the test-tree refactor (non-destructive). One entry
npm run test:unifiedruns a profile of sequences from reusabletests/lib/modules and emitsreport.html(embedded screenshots + .webm video clips) ANDreport.json(schema graphdone.unified-report/1). Exit code = rollup status (CI-gateable).Verified: aggregate node:test 10/10 · smoke profile 212✓ (web unit 205 + THE GATE 5 + auth e2e 2) · showcase sequence embeds 5 video + 5 screenshots. No specs moved/deleted; gate unchanged. Phases 1-6 (clean-tree reorg) plan at docs/test-tree-refactor-plan.json.
🤖 Generated with Claude Code