Exposure adds support for snapshot testing to Elixir projects.
Exposure
For more information, see Usage.
Defines a snapshot test.
Defines a snapshot test that utilizes the test context.
@spec test_snapshot( binary(), keyword() ) :: Macro.t()
describe "my_fun/2" do test_snapshot "works as expected" do my_fun("foo", 123) end end
@spec test_snapshot(binary(), Macro.t(), keyword()) :: Macro.t()
describe "my_fun/3" do test_snapshot "works as expected", ctx do my_fun("foo", 123, ctx) end end