Clean Async XCTests

German Velibekov
Mar 31, 2020 · 6 min read

Writing tests has always been a nontrivial task, especially if the code you are testing is mainly asynchronous (i.e., a tested method receives callback as one of its parameters). Although a callback-style function invocation is entirely appropriate within a program, this style doesn’t fit so well into a unit test environment.

The Definition of Clean Unit Test