Capsule: testing

Use when writing/debugging tests, changing CI/hooks, or choosing focused verification.

Read first

Suites

Invariants

Self-play failure protocol

If a self-play test fails and the cause is not obvious, start a fresh server on its own port and use macOS open to load the replay artifact:

open "http://localhost:<port>/dev/replay-artifact?replay=<artifact_name>"

Do not use the Browser skill for this flow.

Dev scenarios

Game-backed dev scenarios are live, no-fog watcher rooms for inspecting authored simulation situations through the normal Pixi client. Start a local server, then open:

open "http://localhost:<port>/dev/scenarios"

The scenario index owns the current URL shapes and ids. Scenario setup remains server-side under server/crates/sim/src/game/setup/dev_scenarios.rs; do not expose arbitrary spawning or map editing through client commands.

Cross-capsule triggers