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.
Overview
Syllabus
- Unit 1: Test Driven Development with Swift and XCTest
- Correct Discount Application Task
- Zero Discount Handling Task
- Decimal Discount Precision Task
- Negative Price Handling Task
- Discount Percentage Greater Than 100% Handling Task
- Negative Discount Percentage Handling Task
- Unit 2: Test Driven Development with Swift: Advanced Discount Function Requirements
- Non-Numeric Price Input Handling in Discount Calculation
- Non-Numeric Discount Input Handling in Discount Calculation
- Handling Very Small Prices in Discount Calculation
- Minimum Discount Percentage Application in Discount Calculation
- Capping Maximum Discount Amount in Discount Calculation
- Unit 3: Introduction to Test Driven Development with Swift: Building a Shopping Cart Module
- Starting with an Empty Cart
- Adding a Single Item to the Shopping Cart
- Adding Multiple Items to the Shopping Cart
- Handling Multiple Quantities of the Same Item in Shopping Cart
- Removing an Item from the Shopping Cart
- Unit 4: Advanced Test Driven Development with Swift: Expanding the Shopping Cart Module
- Removing a Non-Existent Item from Shopping Cart
- Applying Percentage Discount to Shopping Cart
- Applying a Bulk Discount to Shopping Cart
- Clearing All Items from Shopping Cart
- Updating Item Quantity in Shopping Cart
- Unit 5: Expanding the Shopping Cart Module with Swift and XCTest
- Quantity Limit for Single Item in Shopping Cart
- Retrieving Item Details by ID in Shopping Cart
- Applying Discount Codes in Shopping Cart
- Invalid Discount Code Handling in Shopping Cart
- Adding an Existing Item in Shopping Cart
- Adding to an Existing Item Respects Maximum Quantity in Shopping Cart