DoorDash Used Copilot to Convert Its XCTest-Based iOS Test Suite to Swift Testing

Sergio De Simone ยท article ยท 2026-05-09 source โ†— Reader ๐Ÿ–ฅ๏ธ

Coding AgentsFeedback LoopsGuardrailsLegacy & Organizational ForgettingMCP (Model Context Protocol)
DoorDash migrated its iOS test suite from XCTest to Swift Testing at scale by combining AI-assisted code transformation (Cursor/Copilot with migration rules) with strict reliability gates (ten-consecutive-pass requirement), achieving ~60% faster CI tests while surfacing hidden concurrency defects that sequential execution had masked.

practical ยท case study report โ€” Third-party InfoQ summary of a DoorDash engineering blog post. Reports a specific migration project โ€” tools, process, and quantified outcomes โ€” with minimal theoretical framing.

Structure

PartRole
Problem statement: CI bottleneck from serialized XCTestEstablishes the business pain โ€” double-digit-minute CI runs slowing all engineers
Performance case for Swift TestingPresents benchmark data: 4-7x faster via parallelism, plus richer failure diagnostics
Organizational model: team-owned migration with shared toolingDescribes the scaling strategy โ€” each team migrates its own tests using common tools and guidelines
AI-assisted tooling stack: Cursor + SweetPad + custom MCP serverDetails the developer environment and the 'migration rule' that automates mechanical conversion
Reliability gates: ten-consecutive-pass ruleDescribes the quality bar that each migrated test must meet
Bazel adoption mid-migrationShows adaptability โ€” extended the agent workflow to include Bazel test commands
Hidden defects surfaced by parallelismReports that shared state, order dependencies, and timing assumptions were exposed
Quantified outcomesSummarizes results: ~60% faster tests, ~40% faster builds, reduced costs

Key terms

Propositions

Arguments

The XCTest-to-Swift-Testing migration was worth the investment
Implicit premises:
AI-assisted migration can be made reliable through strict post-migration verification
Implicit premises:

Narratives

Questions addressed

Gaps

Closes gaps elsewhere

Related documents