Skip to main content
grasp.study
About
Explore
Pricing
Log in
Try it for free
Back to course
👋
Welcome to a Grasp lesson
Create a free account
to keep studying and create your own study path.
Professional iOS development
·
Module 4
Effective Unit Testing
1
Unit Testing Business Logic with AAA
Write isolated unit tests for business logic using the Arrange-Act-Assert pattern.
2
Stubs, Fakes, and Mocks: Isolating Dependencies with Mock Objects
Differentiate between stubs, fakes, and mocks, and create a mock object to isolate a dependency.
3
Testing Async ViewModel Code with XCTestExpectation
Test asynchronous code within a ViewModel using `XCTestExpectation`.
4
TDD Workflow: Red, Green, Refactor a New Function
Apply the Test-Driven Development (TDD) workflow (Red-Green-Refactor) to implement a new function.
5
Testing Combine Publishers and Subscribers
Test Combine publishers and subscribers by mocking inputs and verifying outputs.
Previous module
Advanced Architecture and Navigation
Next module
UI and Regression Testing