Back to Basics: Test-driven Development
summary
Covers practical TDD for C++ with concrete tools and outcomes: builds a simple Sudoku solver and small insertion sort to demonstrate unit tests with Google Test, finds an out‑of‑bounds bug that only appears under debug STL and is reliably caught by AddressSanitizer and ThreadSanitizer, and compares dependency injection strategies (constructor, setter, templates, runtime polymorphism) plus test doubles (stubs, fakes, mocks). Emphasizes designing for testability, sanitizers as pragmatic alternative to invasive DI, and avoiding flaky long tests.
AI-written summary · about
chapters (7)
- 0:00Introduction to TDD
- 13:24TDD development cycle explained
- 23:03Refactoring and test sensitivity
- 30:19Test doubles and mocks
- 49:36Testing concurrent programs
- 54:11Sanitizers and testing
- 1:00:12Q&A and practical advice
related talks
01h 02mBack to Basics: C++ Testing
01h 22mTest-Driven Development of C++ Embedded and System-Level Software
01h 01mBack to Basics: Debugging and Testing in C++ Software Development
59mC++ Unit testing - the good, the bad & the ugly
01h 03mBack to Basics: Testing in C++
01h 00mC++ Test-driven Development
01h 01mBack to Basics: Unit Testing in C++
01h 02mBack to Basics: Unit Tests
