Kinda.Testing.Isolated (kinda v0.12.0)

Copy Markdown View Source

Runs an MFA in a fresh BEAM VM.

Requests and replies use ETF over a port. Replies carry a marker so arbitrary stdout from embedded native runtimes cannot corrupt the control channel. This keeps tests with VM-global state parallel without sharing that state.

Summary

Types

scenario()

@type scenario() :: {module(), atom(), [term()]}

Functions

run(scenario, options \\ [])

@spec run(
  scenario(),
  keyword()
) :: term()