Rethinking Unit Testing in C++

Kevlin Henney explores the typical styles used for C++ unit-testing frameworks before going on to look at other possibilities that are more likely to encourage programmer testing and higher quality unit tests. From the raw use of the assert macro, to xUnit-style frameworks, to more natively C++-style frameworks and then onto a specification-centric approach that abandons functions as the basic unit of test case decomposition. The technical and practitioner pros and cons of each approach are examined.

Watch this video on Skillsmatter.com

Related Videos:

Tags: