Foundry. TestScenario. AshTracer
(foundry v0.1.6)
Copy Markdown
Ash.Tracer implementation for Foundry scenario tracing.
Captures action spans and routes them to the test process via message passing, enabling cross-process instrumentation of LiveView handlers without modifying application code.
When tracing a LiveView test:
- The LiveViewHook on_mount callback registers the LV channel PID with the test PID
- When Ash actions fire in the LV handler, this tracer captures them
- The tracer looks up the test PID and sends events back to it
- RuntimeCapture.drain_liveview_events() collects these events after each LV interaction