c++ Archive

Trompeloeil: Mocking Tool for C++

Trompeloeil is an open source thread-safe header-only mocking framework for C++14. It is easy to use while also allowing great expressive power. A popular technique in unit testing is to break dependencies by replacing collaborators of the

Mocking C++with Trompeloeil

Trompeloeil is an open source mocking framework for C++, aimed at ease of use without sacrificing expressive power. In arts, trompeloeil is intended to mock your mind, making you believe you see something that isn’t what it

How to test static_assert?

This talk will demonstrate several options for testing static_assert, ranging from the build system, over the compiler features to template meta programming. It will include real-life examples from sqlpp11.

Testing Battle.net

Battle.net is the online service that runs Blizzard’s games. As such, it is a large scale distributed system with many interacting parts and dependencies on various services and data. While developing Battle.net servers, I needed a way

Pragmatic Unit Testing in C++

Successful adoption of unit testing goes beyond picking a framework: The effectiveness of unit testing is dependent on run-time analysis, static analysis, and other tools to make up the “iron triangle” necessary to get profitable increases in