ACCU Home page ACCU Conference Page
Search Contact us ACCU at Flickr ACCU at GitHib ACCU at Google+ ACCU at Facebook ACCU at Linked-in ACCU at Twitter Skip Navigation

Kevlin Henney on Rethinking Unit Testing in C++


When: 20 May 2010 at 6.30pm

Click here for video recording of presentation at Skills Matter



Where: Skills Matter, 116-120 Goswell Road, London, EC1V 7DP.

Who: Open to all, ACCU memebers and non-members, no charge but we request pre-registration

Registration: Please register on the Skills Matter website for this event

C++ continues to be used widely in a number of domains. However, in spite of its continued popularity and presence, much of the recent thinking on programmer testing has passed C++ by. For reasons of programmer culture and language design, the practice of programmer testing and techniques such as TDD are often not even on the radar of many C++ programmers. This situation is not helped by the limitations of many C++ unit-testing frameworks. Some of the issues are caused by limitations in the language, whereas others are limitations in thinking.

This session explores the typical styles used for C++ unit-testing frameworks before going on to look at other possibilities that a 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.

About Kevlin Henney

Kevlin Henney is a long standing ACCU member and contributor to ACCU journals. In his spare him he has also written for journals such as The Register, Application Development Advisor, Java Report, C++ Report and CUJ. He is co-author of Pattern Oriented Software Architecture (volumes 4 and 5) and editor of 97 Things Every Programmer Should Know.

He currently works as an independent consultant and trainer based in Bristol. He has developed and delivered training courses, consultancy and software across a number of domains ever since getting involved in professional software development in the late 1980s.

More about Kevlin at the Curbralan website.