ExUnit lifecycle setup for Fluffy tests.
Summary
Functions
Establishes Fluffy lifecycle management for the current ExUnit test.
Types
@type setup_option() :: {:repos, [atom()]} | {:sandbox, boolean()} | {:timeout, pos_integer()}
Functions
@spec setup(map(), [setup_option()]) :: :ok
Establishes Fluffy lifecycle management for the current ExUnit test.
Call this from the test case's setup callback before starting sessions. When
Ecto repositories are configured, Fluffy also starts or adopts their SQL
sandbox ownership. Pass sandbox: false to establish lifecycle management
without database ownership.
Options
:repos(list ofatom/0):sandbox(boolean/0):timeout(pos_integer/0)