What is XCTest?

The XCTest library is designed to provide a common framework for writing unit tests in Swift, for Swift packages and applications.

This version of XCTest implements the majority of unit testing APIs included in XCTest from Xcode 7 and later. Its goal is to enable your project’s tests to run on all the platforms Swift supports without having to rewrite them.

Overview