XCTest + Swift: SetUp/TearDown vs Factory Methods

XCTest + Swift: SetUp/TearDown vs Factory Methods

In this episode, we dive into `XCTestCase`’s lifecycle and show different ways for configuring your system under test.

Read More

S01E19: [TDD 🍅 16] Testing Concrete Factories in Swift

S01E19: [TDD 🍅 16] Testing Concrete Factories in Swift

In this episode, we finish test-driving the QuestionViewController creation in the concrete view controller factory.

Read More

S01E17: [TDD 🍅 14] Testing the Quiz Router implementation in Swift

S01E17: [TDD 🍅 14] Testing the Quiz Router implementation in Swift

In this episode, we finish test-driving the NavigationControllerRouter implementation, and we undergo a significant refactoring by replacing the old hard-coded String type questions with the new Question enum type.

Read More

S01E16: [TDD 🍅 13] Decoupling and Testing Modules with Swift Abstract Factories

S01E16: [TDD 🍅 13] Decoupling and Testing Modules with Swift Abstract Factories

In this episode, we continue the implementation of the NavigationControllerRouter by creating an abstract factory protocol, a factory test stub and a new type representing a Question.

Read More