Skip to content

Commit 693b87e

Browse files
author
DavidQ
committed
BUILD_PR_LEVEL_14_TESTS_VALIDATION_COMBINED_PASS
1 parent b0c5c54 commit 693b87e

16 files changed

Lines changed: 166 additions & 15 deletions

docs/dev/CODEX_COMMANDS.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,13 @@ MODEL: GPT-5.4
33
REASONING: high
44

55
COMMAND:
6-
Create `BUILD_PR_LEVEL_12_2D_CAPABILITY_TRACK_RESIDUE_ONLY`.
6+
Create BUILD_PR_LEVEL_14_TESTS_VALIDATION_COMBINED_PASS.
77

8-
1. Inspect prior combined PR results.
9-
2. Identify remaining open items ONLY.
10-
3. Apply minimal fixes.
11-
4. Do not expand scope.
8+
1. Normalize tests/ structure.
9+
2. Align unit/integration coverage.
10+
3. Organize fixtures/helpers.
11+
4. Align validation with engine/shared/tools.
1212
5. Update roadmap status markers only.
13-
6. Report if lane is fully complete.
1413

1514
Package:
16-
`<project folder>/tmp/BUILD_PR_LEVEL_12_2D_CAPABILITY_TRACK_RESIDUE_ONLY.zip`
15+
<project folder>/tmp/BUILD_PR_LEVEL_14_TESTS_VALIDATION_COMBINED_PASS.zip

docs/dev/COMMIT_COMMENT.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
BUILD_PR_LEVEL_12_2D_CAPABILITY_TRACK_RESIDUE_ONLY
1+
BUILD_PR_LEVEL_14_TESTS_VALIDATION_COMBINED_PASS

docs/dev/NEXT_COMMAND.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
NEXT_LANE_SELECTION
1+
BUILD_PR_LEVEL_14_TESTS_VALIDATION_RESIDUE_ONLY
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Residue-only closeout for 2D capability track
1+
Combined tests/validation normalization pass
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Only remaining items touched; lane complete or blockers listed
1+
tests normalized, coverage aligned, fixtures organized

docs/dev/roadmaps/MASTER_ROADMAP_HIGH_LEVEL.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -550,11 +550,11 @@
550550
---
551551

552552
## 14. Testing & Validation
553-
- [.] `tests/` structure normalized
554-
- [.] unit coverage aligned to engine/shared/games
555-
- [.] integration coverage aligned to state/replay/rendering/tools
553+
- [x] `tests/` structure normalized
554+
- [x] unit coverage aligned to engine/shared/games
555+
- [x] integration coverage aligned to state/replay/rendering/tools
556556
- [x] smoke validation aligned to samples/tools/games
557-
- [.] fixtures/helpers organization normalized
557+
- [x] fixtures/helpers organization normalized
558558
- [x] move/refactor validation strategy documented
559559
- [x] post-PR acceptance criteria consistently enforced
560560

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
# BUILD_PR_LEVEL_14_TESTS_VALIDATION_COMBINED_PASS
2+
3+
## Purpose
4+
Stabilize the tests and validation lane with a single combined pass focused on structure normalization, coverage anchors, fixture/helper organization, and validation alignment.
5+
6+
## Completed Scope
7+
8+
### 1) `tests/` structure normalization
9+
- Added `tests/helpers/` for shared validation catalogs.
10+
- Added `tests/fixtures/` with grouped fixture subfolders:
11+
- `tests/fixtures/games/`
12+
- `tests/fixtures/tools/`
13+
14+
### 2) Unit/integration coverage alignment
15+
- Added `tests/helpers/testCoverageCatalog.mjs` to define explicit:
16+
- required structure directories
17+
- unit coverage anchors
18+
- integration coverage anchors
19+
- fixture artifact inventory
20+
- Added `tests/production/TestsValidationCombinedPass.test.mjs` to enforce these boundaries.
21+
- Wired the new test into `tests/run-tests.mjs`.
22+
23+
### 3) Fixture/helper organization
24+
Moved non-executable fixture artifacts out of executable test folders:
25+
- `tests/games/AsteroidsValidation.snippet.js` -> `tests/fixtures/games/AsteroidsValidation.snippet.js`
26+
- `tests/games/AsteroidsValidation.test.mjs.patch` -> `tests/fixtures/games/AsteroidsValidation.test.mjs.patch`
27+
- `tests/tools/VectorNativeTemplate.regex.before.txt` -> `tests/fixtures/tools/VectorNativeTemplate.regex.before.txt`
28+
- `tests/tools/VectorNativeTemplate.regex.after.txt` -> `tests/fixtures/tools/VectorNativeTemplate.regex.after.txt`
29+
- `tests/tools/VectorNativeTemplate.test.mjs.patch` -> `tests/fixtures/tools/VectorNativeTemplate.test.mjs.patch`
30+
31+
### 4) Validation alignment with engine/shared/tools
32+
`TestsValidationCombinedPass` enforces presence of anchor tests aligned to:
33+
- engine/core boundary coverage
34+
- shared foundation coverage
35+
- tool boundary/integration coverage
36+
- state/replay/rendering integration coverage
37+
38+
### 5) Roadmap status updates
39+
Updated status markers only for Section 14:
40+
- `tests/` structure normalized -> `[x]`
41+
- unit coverage aligned to engine/shared/games -> `[x]`
42+
- integration coverage aligned to state/replay/rendering/tools -> `[x]`
43+
- fixtures/helpers organization normalized -> `[x]`
44+
45+
No roadmap prose rewrite.
46+
47+
## Validation Performed
48+
- `node --check` on touched JS/MJS files.
49+
- `tests/production/TestsValidationCombinedPass.test.mjs`
50+
- `tests/core/EngineCoreBoundaryBaseline.test.mjs`
51+
- `tests/shared/SharedFoundationCombinedPass.test.mjs`
52+
- `tests/tools/ToolBoundaryEnforcement.test.mjs`
53+
- `tests/tools/RuntimeAssetBinding.test.mjs`
54+
- `tests/replay/ReplaySystem.test.mjs`
55+
- `tests/replay/ReplayTimeline.test.mjs`
56+
- `tests/world/WorldGameStateSystem.test.mjs`
57+
- `tests/render/Renderer.test.mjs`
58+
59+
All focused checks passed.
60+
61+
## Packaging
62+
<project folder>/tmp/BUILD_PR_LEVEL_14_TESTS_VALIDATION_COMBINED_PASS.zip

tests/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,7 @@ npm test
1414
- persistence, serialization, FX determinism
1515
- production/import guardrails for engine barrels
1616
- game boots and hardening flows (Asteroids plus AI track entry points)
17+
18+
## Structure Notes
19+
- `tests/helpers/` holds shared test catalogs/helpers used by validation tests.
20+
- `tests/fixtures/` holds non-executable fixture artifacts (`.patch`, `.snippet`, and regex snapshots) kept out of executable suites.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)