August 2021
Beginner
192 pages
5h 46m
English
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.
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 ...
Read now
Unlock full access