Overview
Master TDD in C++ with Google Test/Mock. Write tests first, implement code to pass, then refactor. Use Google Mock for test doubles to isolate components. TDD leads to cleaner, maintainable code, early bug detection, and better development efficiency.
Syllabus
- Course 1: Foundations of TDD in C++ & Google Test: The Principles
- Course 2: Red-Green-Refactor: Practicing TDD with C++ & Google Test
- Course 3: Isolating Dependencies with Test Doubles with Google Mock
- Course 4: Refactoring by Leveraging Tests with C++ & Google Test
Courses
-
This course introduces Test-Driven Development (TDD) for C++ projects, covering the Red-Green-Refactor workflow, TDD mindset, and setup with Google Test. 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.