Introduction
XCTest helps you check if your Swift code works correctly by running tests automatically.
You want to make sure a function returns the right result.
You want to check if your app handles errors properly.
You want to test if your code changes break anything.
You want to run tests automatically when you build your app.