Chapter 11. Almost Unit Tests
Developers must do more than just write unit tests to ensure that their code indeed works. In the first chapter, I mentioned several other activities, two of which were to write integration tests and to automate tests in general. Such tests, which I’ll refer to as “higher-level tests,” are discussed later in the book. In the meantime, it’s time to visit a family of tests that shares some characteristics with unit tests and some with higher-level tests, which tends to cause confusion and discussions among developers. A common trait of such tests is that they’re not unit tests—at least not according to the definition advocated by this book, but they execute just fast enough—in the range of 1 to 2 seconds—to make it ...
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.