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: Introduction to Test Driven Development with C++ and Google Test
- Correct Discount Application Task
- Zero Discount Handling Task
- Decimal Discount Precision Implementation Task
- Negative Price Error Handling in Discount Calculation
- Calculate Discount with Error Handling in C++
- Unit 2: Continue Developing the CalculateDiscount Function in C++ with Google Test
- Negative Discount Handling in C++
- Handling Very Small Prices
- Minimum Discount Percentage Application Task
- Capping Maximum Discount Amount Implementation
- Unit 3: Introduction to the Shopping Cart Module Using C++ and Google Test
- Implementing an Empty Shopping Cart Feature
- Adding a Single Item to ShoppingCart
- ShoppingCart Feature Implementation
- Handling Multiple Quantities of the Same Item in Shopping Cart
- Removing an Item from ShoppingCart
- Unit 4: More Advanced Features for the Shopping Cart Module with TDD
- Removing a Non-Existent Item from ShoppingCart
- Applying Percentage Discount to Shopping Cart
- Applying Bulk Discount in Shopping Cart
- Clearing All Items in ShoppingCart
- Updating Item Quantity in ShoppingCart
- Unit 5: Completing the Shopping Cart Module with C++ and Google Test
- Implementing Quantity Limit for Shopping Cart Items
- Retrieving Item Details by ID
- Applying Discount Codes in ShoppingCart
- Invalid Discount Code Handling in ShoppingCart
- Adding an Existing Item in a Shopping Cart
- Adding to Existing Item Respects Maximum Quantity