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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access