View Source Repatch.ExUnit (Repatch v1.6.0)
An ExUnit
-friendly helper to be used in testing. Just add
use Repatch.ExUnit
Somewhere after the use ExUnit.Case
line and this helper will setup
cleaning of Repatch
state and application env isolation if it is enabled.
Options
isolate_env
(false
|:local
|:shared
|:global
) — Whether to enable application env isolation and what mode to use for it. SeeRepatch.mode/0
orRepatch.Application.patch_application_env/1
for more info. Defaults tofalse
.assert_expectations
(boolean/0
) — Whether to perform assertion on expectations duringon_exit
or not. SeeRepatch.Expectations.expect/4
. Defaults tofalse
.