Controlling Test Executions

When running unit tests (and UI tests), XCTest provides a few ways of interacting with the test runner. The most common scenario for interacting with your own tests is to provide common code to run before tests start and when they finish to ensure that each test has a clean environment. Setup and Tear Down XCTestCase provides APIs to modify the test environment before and after all tests have executed, but also before and after individual tests have run....