Chapter 18. Beyond Unit Testing

As you grow accustomed to writing unit tests, you’ll most likely appreciate the security and feedback they provide, and you’ll want the same for bigger building blocks and their interactions.

Until now, many topics have been illustrated with unit tests. It’s quite natural, because they constitute the basis of developer testing and embody many of the principles behind more complex tests. Besides, they can be kept small and to the point, which is rather helpful when explaining a concept or technique. If you get the low-level unit tests right, shifting toward higher-level tests, like integration tests or end-to-end tests, is relatively easy. Still, there are some differences and pitfalls worth mentioning.

This closing ...

Get Developer Testing: Building Quality into Software 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.