Description
In this course, you will learn:
- Fundamentals of unit tests in Xcode.
- How to add unit tests to your iOS projects.
- An overview of unit testing and test-driven development.
- How Xcode makes it easy to leverage unit tests to ensure that you're shipping a quality app.
- How to write and execute unit tests, write performance tests, and configure and record UI tests.
Syllabus:
- Introduction
- What you should know
1. Xcode Unit Test Overview
- Unit testing and test-driven development
- Unit tests in Xcode
- Generated code for unit tests
- Access control
- Asserts for unit tests
2. Unit Test Execution
- Write a unit test
- How to execute a unit test
- Use mock test data
- Use mock classes
- Asynchronous unit tests
3. Performance Tests
- Overview of performance tests
- Write a performance test
- Server performance tests
4. UI Tests
- Configure UI tests
- Record a UI test
- Access UI elements
- UI test failures