Skip to main content

run_app_headless

Function run_app_headless 

Source
pub fn run_app_headless(opts: RunOptions, ticks: u32) -> Result<(), RunError>
Expand description

Build the full app WITHOUT opening a window, then drive ticks main-schedule ticks and return. Headless / CI entry point: same plugin stack, scripts, and reactive bindings as run_app, but no windowing, input, or rendering - just App::tick in a loop.

ticks == 0 builds-and-drops (validates the app loads). The window setup (title, size, text shaper) built alongside the app is discarded; headless ticks run the main schedule + extract + an empty render schedule (no renderer is installed off the windowed path), which is sufficient to exercise signal round-trips, script execution, and <for> / <if> reconciliation.