Learning the testing history in Apple platforms
As Apple development tools evolved over the years, the testing tools have also developed.
The first dedicated testing framework for Apple platforms was SenTestingKit, based on the OCUnit open source framework.
SenTestingKit was introduced in 2005 and integrated into Xcode, providing basic functionality for writing and running Objective-C code.
In 2013, Apple introduced XCTest, which takes a more modern approach to testing, with better Xcode integration and support for Objective-C and Swift.
Let’s take the code example in the Understanding the importance of testing section and see an example of an XCTest test:
class CanUserAddTaskTests: XCTestCase { func testCanAddTaskWhenListIsLocked() { let list = List(id: "1", isLocked: true, sharingAttribute: .privateList, allowedRoles:...