XCTest Introduction
Gio Lodi · Apress eBooks · 2021
This chapter gives an overview of the core features of XCTest, Apple's Swift testing framework, and how to use it to write tests from within Xcode. It walks through the most useful testing assertions, how to test asynchronous code, and how to perform setup and tear down logic common to multiple tests.