run_playtest
Execute playtest DSL scripts in Unity Play Mode to automate scene testing and validate conditions. Returns a structured report with assertions, snapshots, and metrics to catch regressions and verify behavior.
Instructions
[Play Mode] Execute a playtest DSL script. Returns structured report (for NUnit tests, use run_tests).
Commands: MOVE TO x,y,z | WAIT n | WAIT_UNTIL query op value | ASSERT query op value |
ASSERT_CONSOLE_CLEAN [IGNORE "pat"] | SNAPSHOT queries | INVOKE path comp method args |
SET path comp field value | LOG msg | TIMESCALE n | ASSERT_CONSERVED SUM a+b OVER t |
ASSERT_CTA VISIBLE|CLICKABLE | VAL name query | TELEPORT path x,y,z |
ASSERT_BATCH...END | ASSERT_NEAR pathA pathB dist | INVARIANT query op value |
SIMULATE name [DURATION n] [TIMESCALE n] | MONITOR name | TRACE_FLOW FROM a TO b FIELD f |
CAPTURE label query | ASSERT_CAPTURED label INCREASED|DECREASED.
defs: inline VAL definitions prepended to script.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| defs | No | ||
| path | No | ||
| fresh | No | ||
| script | No | ||
| timeout | No | ||
| abort_on_fail | No | ||
| snapshot_on_failure | No |