As you know by now, TDD is a process in which you write a test first before writing actual code. But before jumping into TDD, you need to understand the basics of testing in iOS. Luckily, every year, Xcode and Swift are becoming more and more powerful when it comes to testing. And the testing framework “XCTest” is also evolving with them.
This chapter covers how to use XCTAssert functions to write functional tests. These are the main components of XCTest. You’ll also learn how to use expectations to test async ...