6 Testing
Writing, running, and fixing tests can feel like busywork. In fact, it’s easy for tests to be busywork. Bad tests add developer overhead without providing value and can increase test suite instability. This chapter will teach you to test effectively. We’ll discuss what tests are used for, different test types, different test tools, how to test responsibly, and how to deal with nondeterminism in tests.
The Many Uses of Tests
Most developers know the fundamental function of tests: tests check that code works. But tests serve other purposes as well. They protect the code from future changes that unintentionally alter its behavior, encourage clean code, force developers to use their own APIs, document how components are to be interacted ...
Get The Missing README 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.