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: Intro to TDD with Kotlin and JUnit
- Correct Discount Application
- Zero Discount Handling Task
- Decimal Discount Precision Task
- Negative Price Handling Task
- Discount Calculator Implementation
- Unit 2: Continue Developing the calculateDiscount Function with Kotlin
- Negative Discount Percentage Handling in Kotlin Task
- Handling Very Small Prices in Discount Calculations
- Minimum Discount Percentage Application Task
- Capping Maximum Discount Amount Task
- Unit 3: Shopping Cart System with Kotlin, TDD, and JUnit
- Starting with an Empty Shopping Cart Task
- Adding a Single Item to the ShoppingCart in Kotlin
- Adding Multiple Distinct Items to Shopping Cart
- Handling Multiple Quantities in ShoppingCart
- Removing an Item from ShoppingCart in Kotlin
- Unit 4: Enhancing Shopping Cart Functionality with TDD in Kotlin
- Removing a Non-Existent Item in ShoppingCart
- Applying Percentage Discount in Shopping Cart
- Applying a Bulk Discount to Shopping Cart
- Clearing All Items in the Shopping Cart Task
- Updating Item Quantity in Shopping Cart
- Unit 5: Completing the Shopping Cart with TDD in Kotlin
- Enforcing Maximum Quantity Limit in Shopping Cart Task
- Retrieving Item Details by ID in ShoppingCart
- Applying Discount Codes in Shopping Cart
- Implement a Shopping Cart with Discount Code Validation in Kotlin
- Implement Shopping Cart with Existing Item Update Feature
- Adding to Existing Item in Cart Respects Maximum Quantity