In-memory test adapter using process dictionary storage.
Stores delivered messages in the calling process's dictionary, providing per-test isolation without shared state between test processes. This mirrors the Swoosh.Adapters.Test pattern.
Usage in tests
setup do
Chimeway.Adapters.Test.clear()
:ok
end
test "delivery was sent" do
# ... trigger delivery ...
Chimeway.Adapters.Test.assert_delivered(delivery)
end
Summary
Functions
Asserts that a delivery with the given ID was stored in the test adapter.
Clears all deliveries from the current process's test adapter store. Call in test setup/teardown.
Returns all deliveries stored in the current process's test adapter.
Functions
Asserts that a delivery with the given ID was stored in the test adapter.
Raises ExUnit.AssertionError with a readable message if the delivery is
not found.
Clears all deliveries from the current process's test adapter store. Call in test setup/teardown.
Returns all deliveries stored in the current process's test adapter.