Course
Skills Expanded
iOS Unit Testing with XCTest
This course walks you through the fundamentals of iOS Unit Testing using the XCTest framework.
What you'll learn
This course will help you to understand the principles of iOS Unit Testing. In addition, you will learn some great patterns and best practices to implement when creating unit tests.
Table of contents
Introduction to Unit Testing in Xcode
9mins
XCTest Basics
47mins
- Introduction 0m
- Module Breakdown 2m
- Structuring Tests in XCTest 3m
- Demo - Structuring Tests in XCTest 15m
- Xcode IDE Tools (Navigators) 1m
- Demo - Xcode IDE Tools (Navigators) 6m
- Xcode IDE Tools (Breakpoints and Menus) 1m
- Demo - Xcode IDE Tools (Breakpoints and Menus) 4m
- Xcode IDE Tools (Assistants) 1m
- Demo - Xcode IDE Tools (Assistants) 1m
- Assertions 1m
- Assertions (XCTAssertNil, XCTAssertNotNil) 2m
- Assertions (XCTAssertTrue, XCTAssertFalse) 1m
- Assertions (XCTAssetEqualObjects, XCTAssertEqual) 2m
- Assertions (XCTAssertEqualWithAccuracy) 1m
- Assertions (XCTAssertThrows, XCTAssertNoThrow) 1m
- Assertions (XCTAssertThrowsSpecific, XCTAssertNoThrowSpecific) 1m
- Assertions (ThrowsSpecificNamed, NoThrowSpecificNamed) 2m
- Assertions (XCTFail, XCTAssert) 1m
- Summary 1m
Mocking and Stubbing
49mins
- Introduction 0m
- Module Breakdown 2m
- Stubs 3m
- Mocks 3m
- Xcode IDE Tools 2m
- OCMock Initialize Syntax 3m
- Demo - OCMock Initialize Syntax 19m
- OCMock Argument Constraints 4m
- Demo - OCMock Argument Constraints 4m
- OCMock Advanced Techniques (andReturn, andReturnValue) 1m
- Demo - OCMock Advanced Techniques (andReturn, andReturnValue) 3m
- OCMock Advanced Techniques (andThrow, andPost) 1m
- OCMock Advanced Techniques (andCall, andDo) 1m
- Demo - OCMock Advanced Techniques (andCall, andDo) 3m
- Summary 1m
Patterns and Best Practices - Part 1
89mins
Patterns and Best Practices - Part 2
51mins