
"DoorDash engineers anticipated both improved performance and better failure diagnostics from the migration. Their benchmarks confirmed that Swift Testing was four to seven times faster than XCTest, largely due to its ability to run tests in parallel for both synchronous and asynchronous code."
"Slow, mostly serialized XCTest runs had clogged DoorDash's iOS continuous integration, or CI, pipelines. As our apps and shared packages grew, the CI test step stretched into double-digit minutes, consumed more CI resources, and slowed iteration for every engineer."
"To 'teach' Cursor to migrate tests, they defined a 'migration rule' that automated the process, ensuring a consistent and efficient transition to the new testing framework."
DoorDash successfully migrated its iOS XCTest-based test suite to Swift Testing, resulting in performance gains of four to seven times faster test execution. The migration addressed slow CI pipelines that had become a bottleneck due to serialized test runs. By implementing a tooling-first approach and clear engineering principles, each team managed their own test migrations. The use of AI coding assistant Cursor and other tools facilitated a developer-friendly environment, enhancing the migration process and ensuring reliability in the tests.
Read at InfoQ
Unable to calculate read time
Collection
[
|
...
]