Catch has gained popularity over the last seven years as a modern, C++-native, test framework. Simple to use, easy to get started with, yet still powerful. With features like expression-template-based assertions, hierarchical sections (giving a more natural flow than set-up/ tear-down methods) and more, a lot of users say it makes testing easier and even fun!
Until recently, though, it has been constrained by pre-C++11 compatibility. Catch2 rebases on C++11 and takes advantage of this to simplify further, as well as offer new capabilities. This talk takes a look at what's new in Catch and Catch2 and how to effectively test-drive modern C++ codebases.
Familiarity with the original Catch is not assumed, but if you already use it, or have seen previous talks, in this material we'll focus more on some of the newer features.
Developer Advocate at SonarSource, author of Catch/Catch2, co-host of cpp.chat and No Diagnostic Required, host of C++ London, chair and organiser of C++ on Sea.