test: expose broken HUD composition
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
# HUD composition RED report
|
||||
|
||||
## Scope
|
||||
|
||||
RED-only TDD change. No production scene, script, or asset was modified. Contracts were added only to:
|
||||
|
||||
- `tests/unit/test_hud_layout.gd`
|
||||
- `tests/unit/test_display_layout.gd`
|
||||
- `tests/e2e/test_visual_readability_e2e.gd`
|
||||
|
||||
## Measured current-state failures
|
||||
|
||||
Targeted GUT execution completed without `SCRIPT ERROR` or `Parse Error`.
|
||||
|
||||
- **Journal/minimap collision:** at both 1920×1080 and 1280×720, `EventLog` and `LogPanel` intersect `Minimap`.
|
||||
- **Mockup width proportions:** each rail measures 320/1920 = **16.67%** (below 22%); `PlayAreaFrame` measures 1180/1920 = **61.46%** (above 56%). The same scaled ratios occur at 1280×720.
|
||||
- **Opaque outside-play-area mask:** all four required `PlayAreaMaskTop`, `PlayAreaMaskLeft`, `PlayAreaMaskRight`, and `PlayAreaMaskBottom` nodes are absent.
|
||||
- **Named visual sections:** `CharacterSection`, `ObjectivesSection`, `StatusSection`, `JournalSection`, and `MapSection` are absent.
|
||||
- **Camera viewport:** the camera exposes **1920×1080** while `PlayAreaFrame` is **1180×830**, proving the world is still full-screen rather than constrained to the central frame.
|
||||
|
||||
## Commands and result
|
||||
|
||||
```sh
|
||||
/snap/bin/godot4 --headless --path . -s res://addons/gut/gut_cmdln.gd \
|
||||
-gtest=res://tests/unit/test_hud_layout.gd,res://tests/unit/test_display_layout.gd -gexit
|
||||
/snap/bin/godot4 --headless --path . -s res://addons/gut/gut_cmdln.gd \
|
||||
-gtest=res://tests/e2e/test_visual_readability_e2e.gd -gexit
|
||||
```
|
||||
|
||||
Expected RED result observed:
|
||||
|
||||
- unit targeted suite: **5 failing tests** (16/21 passing)
|
||||
- E2E targeted suite: **1 failing test** (1/2 passing)
|
||||
|
||||
The failures are behavioral contract failures listed above, not parser failures.
|
||||
Reference in New Issue
Block a user