Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

Build a Replayable Email Smoke Test with a Run Ledger

说明与用途

电子邮件烟雾测试现在记录事件日志,便于重现失败并加速调试。

问题

Email verification checks often fail in CI due to unclear causes such as missing messages, premature polling, or stale inboxes.

结果

The test now produces a durable ledger of events, making failures reproducible and debugging faster.

工作流

  • Generate a unique run_id
  • Allocate a temporary inbox and log "allocated" state
  • Submit verification request and log "requested" state
  • Poll inbox for email, verify token, and log "observed" state
  • Release inbox in a finally block and log "released" state

证据

Email verification checks are deceptively easy to automate. Create an inbox, submit a form, wait for a message, click the link, and assert that the account is active.

来源

The ledger gives each test run one identity and connects its events to that identity.

来源

Keep the first version small. Four states cover most useful triage: allocated, requested, observed, released.

来源

The finally block is not decoration. It is what keeps a slow or broken test from leaving a pile of inboxes behind.

来源

  • 记录日期: 2026-10-27T15:11:42.786Z