Skip to main content

Module test

Module test 

Source
Expand description

In-process end-to-end test helpers for Rust actors.

Mirrors the TypeScript rivetkit/test setupTest helper: setup spawns or reuses a local engine, serves the registry, and returns a client so a test can call actions with no engine or HTTP plumbing.

Structs§

TestActor
A handle to an actor under test. Action calls retry while the actor is still starting up, so the first call needs no manual readiness wait.
TestHandle
A running test registry. Drop or shutdown to stop serving. The local engine is intentionally left running for reuse.

Functions§

setup
Spawns or reuses a local engine, serves registry, and returns a handle for calling actions through the Rust client.