Building end-to-end email delivery tests requires verifying emails actually arrive, not just that APIs succeed. This implementation uses Cloudflare Email Routing to catch test emails, a Cloudflare Worker to parse and store them in KV storage, and Rails tests that poll an HTTP API until delivery is confirmed. Each test sends to
Table of contents
The ProblemThe ArchitecturePart 1: The Email Receiver (Cloudflare Worker)Part 2: The Rails Test HarnessPart 3: Rails Credentials for Provider ConfigPart 4: GitHub Actions IntegrationWhat This CatchesThe CostsTry It YourselfSort: