filmov
tv
Testing completion handler code with Swift Testing

Показать описание
In this video, I dive into an interesting challenge I faced while updating my Swift Concurrency book, specifically when converting tests from XCTest to Swift Testing. While Apple’s migration guide offers solutions, I encountered a unique case involving a completion handler-based API that wasn’t fully addressed. Join me as I walk through how to handle this scenario, explain where I went wrong, and show how to use continuations to properly test asynchronous behavior in Swift.