In the previous chapter, we saw how to write code that tests code. While it was fun to construct a few functions to help us with that, to be productive and professional, it’s much better to use a testing library.
A testing library, or framework in Swift terminology, provides the scaffold on which to build tests, run them, and gather their results. In the Apple ecosystem, XCTest is the default testing framework, and it comes bundled with the Xcode IDE.
If you like to get to know your tools before starting to work with them, you’ll enjoy the following XCTest overview. If, on the other hand, ...