plushie/testing/backend/windowed
Windowed test backend with real iced windows.
Spawns plushie as a daemon with real GPU rendering. All protocol
messages including scripting messages (Query, Interact, Screenshot,
Reset) work in this mode.
Requirements
Requires DISPLAY or WAYLAND_DISPLAY environment variable to be set. For CI (headless environment), use Xvfb:
sudo apt-get install -y xvfb mesa-vulkan-drivers
Xvfb :99 -screen 0 1024x768x24 &
export DISPLAY=:99
export WINIT_UNIX_BACKEND=x11
When to use
End-to-end integration tests that verify the full stack including window lifecycle, real rendering, and platform effects. Slowest backend but highest confidence.
Types
Options for the windowed backend.
pub type WindowedOpts {
WindowedOpts(
format: protocol.Format,
renderer_path: option.Option(String),
)
}
Constructors
-
WindowedOpts( format: protocol.Format, renderer_path: option.Option(String), )Arguments
- format
-
Wire format. Default: Msgpack.
- renderer_path
-
Path to the plushie binary. None = auto-resolve.
Values
pub fn backend() -> backend.TestBackend(model)
Create a windowed test backend with default options.
pub fn backend_with_opts(
opts: WindowedOpts,
) -> backend.TestBackend(model)
Create a windowed test backend with custom options.