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 ...
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