This document discusses improvements to Xcode and unit testing tools. It covers new features in Xcode 11-12.5 like test plans to run selected tests with configurations, improved error handling, custom asserts, XCTIssue to log issues, XCTSkip to skip tests, XCTExpectFailure to mark expected failures. It emphasizes writing modular tests and recommends using the latest APIs like XCTSkipIf and XCTExpectedFailure to make testing easier.
15. Test plan
● Running tests with different sanitizers/diagnostics
● Testing multiple localizations
● Running selected tests with a specific configuration
● Different test scope:
Xcode 11
36. Skipping tests
func testThatSkips() throws {
try XCTSkipUnless(qaServerReachable(), "QA server not reachable")
// Retrieve test data
// Perform test
}
Xcode 11.4