More on this book
Community
Kindle Notes & Highlights
Here are qualities of good unit tests: 1. They run fast. 2. They help us localize problems.
A unit test that takes 1/10th of a second to run is a slow unit test.
Unit tests run fast. If they don’t run fast, they aren’t unit tests. Other kinds of tests often masquerade as unit tests. A test is not a unit test if: 1. It talks to a database. 2. It communicates across a network. 3. It touches the file system. 4. You have to do special things to your environment (such as editing configuration files) to run it. Tests that do these things aren’t bad. Often they are worth writing, and you generally will write them in unit test harnesses. However, it is important to be able to separate them from true unit tests so that you can keep a set of tests that you can
...more
Dependency is one of the most critical problems in software development. Much legacy code work involves breaking dependencies so that change can be easier.

