Overview
Explore Test Driven Development (TDD) in Swift, focusing on writing clean, testable code. Learn to set up XCTest, use test doubles like mocks and stubs, and apply refactoring techniques to enhance code maintainability, efficiency, and robustness.
Syllabus
- Course 1: Foundations of TDD in Swift and XCTest: The Principles
- Course 2: Red-Green-Refactor: Practicing TDD with Swift & XCTest
- Course 3: Isolating Dependencies with Test Doubles with Swift & XCTest
- Course 4: Refactoring by Leveraging Your Tests with Swift and XCTest
Courses
-
This course introduces Test-Driven Development (TDD) for Swift projects, covering the Red-Green-Refactor workflow, TDD mindset, and setup with XCTest. Learn best practices like SOLID principles and dependency injection, and explore TDD's impact on code quality and speed compared to traditional approaches.
-
This course focuses on practicing the core TDD workflow: "Red-Green-Refactor." You'll write failing tests (Red), implement code to pass them (Green), and refactor while keeping tests passing (Refactor). No new concepts are introduced—just hands-on practice with various requirements to sharpen your TDD skills.
-
Discover the pivotal role of test doubles in modern software testing. This introductory session will guide you through the essentials of dummies, stubs, spies, mocks, and fakes. Learn how these powerful tools help you isolate units under test, control behavior, and build reliable, fast, and maintainable tests. Step into the world of test doubles and elevate your software development skills.
-
This course focuses on the Refactor step in TDD, teaching developers to spot code smells and resolve them through refactoring. Using real-world examples, you'll identify common issues, apply refactoring techniques, and ensure functionality is preserved with existing tests.