Speaker: Maciej Piotrowski
Maciej will be sharing on Synchronous Unit Tests. Mobile applications are usually multi-threaded. We perform UI operations on the main thread and dispatch heavy tasks (e.g. network requests, JSON parsing, writing to a file on a disk) to background threads. If we wanted to test an object that uses a background thread to perform work, we would use an XCTestExpectation and wait for an async operation to finish. Is there another option to test it?
Produced by Engineers.SG
Recorded by: Yeo Kheng Meng
Help us caption & translate this video!