12: Testing

Abstract

Automated testing is one of the most important activities you can invest in to ensure that application programming interface (API) changes don't break your clients' programs. This chapter starts off by presenting the case for writing tests and then categorizes the various types of testing you can perform on an API, including open box testing and closed box testing, as well as unit testing, integration testing, and performance testing. The topic of how to write good tests is covered by detailing the qualities of a good test, what to test, how to focus your testing effort, and how to work effectively with a quality assurance team. The next topic looks at how you can write code that's more amenable to testing. This covers ...

Get API Design for C++, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.