-
Unit Testing Concepts
Learn about what a unit test is, what makes a good unit test, what is a good amount of code coverage and more.
-
XCTest Framework
Learn how to use Apple’s native testing suite: the XCTest framework. Learn what a test case is, how to assert expectations, and how to set up and tear down each test to make sure each test runs in a neutral environment.
-
Writing Unit Tests
Learn how to add a testing target to new or existing projects, and learn how to write unit tests using a simple given-when-then method.
-
Mocking Network Requests
Learn how to create mocks by refactoring code to make it more testable. Learn the differences between mocking, stubbing, and faking.
-
Test Driven Development
Learn how to do test-driven development, what the red-green-refactor methodology is, and practice how to do it in sample projects.
-
Unit Testing Best Practices
Learn why unit tests should be independent and shouldn’t rely on other tests or external sources. Learn what the best practices are when writing unit tests.
Course Requirements
- Xcode 13, Swift 5.5, macOS Big Sur 11.3 or later
Course curriculum
-
-
Welcome
-
Resources
-
Where to Get Help?
-
-
-
Lesson 01: Getting Started with Unit Testing in iOS
-
Lesson 02: Writing a Simple Unit Test
-
Lesson 03: Mocking a Network Request
-
Lesson 4: Writing the Unit Test
-
Lesson 5: Test Driven Development
-
About this course
- Free
- 8 lessons
- 1 hour of video content