Add live server lifecycle to tests/run-visual (start/stop server per
scenario, parse LISTENING:{port}). Add MessagePack snapshot replay to
visual_capture.gd via Protocol.decode_snapshot() — exercises the full
client pipeline from wire bytes to rendered fog. Three replay scenarios
(hub_spawn, fog_theater, hub_after_movement) plus one live scenario
(fog_live_hub). Add gen_gauntlet_fixtures.rs to produce .msgpack fixtures
from the Gauntlet test world. Add max_diff_pct threshold to visual-diff.
Makefile: add fixtures-gauntlet target, fix build-client double-import,
preserve .godot cache in clean.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
107 lines
3.2 KiB
JSON
107 lines
3.2 KiB
JSON
{
|
|
"resolution": [960, 540],
|
|
"settle_frames": 30,
|
|
"tolerance": 5,
|
|
"max_diff_pct": 0.5,
|
|
"golden_dir": "client/tests/golden/visual",
|
|
"scenarios": {
|
|
"fog_3state": {
|
|
"ticks": 5,
|
|
"description": "All 3 fog states — clear/explored/unexplored"
|
|
},
|
|
"fog_diagonal": {
|
|
"ticks": 10,
|
|
"description": "Diagonal LOS boundary (staircase regression target)"
|
|
},
|
|
"fog_boundary": {
|
|
"ticks": 8,
|
|
"description": "Explored/unexplored transition centered in frame"
|
|
},
|
|
"fog_zone_tint": {
|
|
"ticks": 5,
|
|
"description": "Bar zone warm amber tint in explored fog (D-046)"
|
|
},
|
|
"fog_debug": {
|
|
"ticks": 5,
|
|
"description": "Raw exploration overlay (green/blue/red)"
|
|
},
|
|
"npc_in_fog": {
|
|
"ticks": 5,
|
|
"description": "NPC sprite visible above fog overlay (D-033)"
|
|
},
|
|
"hud_default": {
|
|
"ticks": 1,
|
|
"description": "Full HUD: time, Careful stance (green), minimap, monologue"
|
|
},
|
|
"dialogue_open": {
|
|
"ticks": 3,
|
|
"description": "Dialogue box + interaction prompt + key bar positioning"
|
|
},
|
|
"dialogue_with_monologue": {
|
|
"ticks": 4,
|
|
"description": "Confrontation beat: dialogue + monologue simultaneously"
|
|
},
|
|
"minimap_stance": {
|
|
"ticks": 2,
|
|
"description": "Minimap + Sprint stance indicator overlap (top-right)"
|
|
},
|
|
"cursor_menu": {
|
|
"ticks": 3,
|
|
"description": "Cursor rendering over dialogue option"
|
|
},
|
|
"fog_live_replay": {
|
|
"ticks": 1,
|
|
"description": "Replay real server hub snapshot — full pipeline fog test",
|
|
"replay_snapshot": "tests/fixtures/gauntlet/hub_spawn.msgpack"
|
|
},
|
|
"fog_theater_replay": {
|
|
"ticks": 1,
|
|
"description": "Replay Fog Theater — large room with NPCs at varying distances",
|
|
"replay_snapshot": "tests/fixtures/gauntlet/fog_theater.msgpack"
|
|
},
|
|
"fog_boundary_replay": {
|
|
"ticks": 1,
|
|
"description": "Replay hub after movement — explored/visible tile boundary",
|
|
"replay_snapshot": "tests/fixtures/gauntlet/hub_after_movement.msgpack"
|
|
},
|
|
"fog_live_hub": {
|
|
"ticks": 10,
|
|
"live": true,
|
|
"description": "Live server: Hub spawn fog — real pipeline regression test"
|
|
}
|
|
},
|
|
"flows": {
|
|
"flow_dialogue": {
|
|
"interval": 3,
|
|
"steps": [
|
|
{ "action": "MoveSouth", "label": "approaching NPC" },
|
|
{ "action": "Interact", "label": "dialogue opens" },
|
|
{ "action": "wait", "label": "reading options" },
|
|
{ "action": "select_option_1", "label": "option selected" },
|
|
{ "action": "wait", "label": "NPC response" },
|
|
{ "action": "MoveNorth", "label": "walking away" }
|
|
]
|
|
},
|
|
"flow_explore": {
|
|
"interval": 3,
|
|
"steps": [
|
|
{ "action": "MoveNorth", "label": "moving north" },
|
|
{ "action": "MoveNorth", "label": "fog revealing" },
|
|
{ "action": "MoveNorth", "label": "near wall" },
|
|
{ "action": "MoveSouth", "label": "fog hiding" }
|
|
]
|
|
}
|
|
},
|
|
"crops": {
|
|
"top-right": [760, 0, 200, 200],
|
|
"top-left": [0, 0, 250, 150],
|
|
"bottom": [0, 340, 960, 200],
|
|
"full": [0, 0, 960, 540]
|
|
},
|
|
"thumbnail": {
|
|
"width": 240,
|
|
"height": 135,
|
|
"columns": 4
|
|
}
|
|
}
|