Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Using Trompeloeil - A Mocking Framework for Modern C++

NDC Conferences via YouTube

Overview

Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Explore the powerful Trompeloeil mocking framework for modern C++ in this comprehensive 53-minute conference talk. Dive into unit testing techniques, breaking dependencies, and creating mock objects with ease. Follow along as the speaker demonstrates step-by-step development using Test-Driven Development (TDD), covering basic usage to advanced topics. Learn about testing patterns, sequential ordering relations, data representation in violation messages, mock object lifetime management, matcher writing, and overload disambiguation. Gain insights into practical examples, macros, error messages, and various testing scenarios while discovering how to improve code quality and maintainability. Participate in the development process and enhance your C++ unit testing skills with this informative presentation from NDC Conferences.

Syllabus

Introduction
Examples
Macros
Unit Testing Adapter
Martin Fowler
How to mock
Google mock
Compilation error message
Writing just with boxes
Writing tests
Whiskey
Error messages
Random
InventoryRemove
Sequence Object
Call to remove
Extend
Generic strings
Concrete types
Record types
Order objects
Test add returns
Create an order object
Catch assertion
Order class template
Destructor
Multiple Asset
Local
Hex Dump
Print
Unexpected
Embarrassing
Mobstore
Stock
Expectations
Member variables
Out of stock
lambda expression
call
call to reserve
test fixture
make presentations better
order multiple whiskeys
readability
notification
notify
lambda
compile
local deviations
completeness
error message
bug fixed
cheat sheet
outro

Taught by

NDC Conferences

Reviews

Start your review of Using Trompeloeil - A Mocking Framework for Modern C++

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.