add black-box debug harness
This commit is contained in:
26
internal/harness/scenarios/spawn_process_via_palette.json
Normal file
26
internal/harness/scenarios/spawn_process_via_palette.json
Normal file
@@ -0,0 +1,26 @@
|
||||
{
|
||||
"name": "spawn_process_via_palette",
|
||||
"presets": {
|
||||
"processes": [
|
||||
{
|
||||
"name": "ready",
|
||||
"argv": ["ready-script"]
|
||||
}
|
||||
]
|
||||
},
|
||||
"scripts": [
|
||||
{
|
||||
"name": "ready-script",
|
||||
"body": "#!/bin/sh\necho READY\nsleep 5\n"
|
||||
}
|
||||
],
|
||||
"steps": [
|
||||
{ "type": "wait_stable", "timeout_ms": 3000 },
|
||||
{ "type": "send_chord", "chord": "ctrl-k" },
|
||||
{ "type": "send_text", "text": "ready" },
|
||||
{ "type": "send_chord", "chord": "enter" },
|
||||
{ "type": "wait_text", "contains": "READY", "timeout_ms": 5000 },
|
||||
{ "type": "assert_mcp", "method": "list_processes", "path": "0.name", "equals": "ready" },
|
||||
{ "type": "assert_mcp", "method": "list_processes", "path": "0.status", "equals": "running" }
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user