Ugly Tests Trigger Refactoring

Paying close attention to your tests can highlight design problems in production code that you might not notice otherwise. Here, we'll look at an example that occurred during the development of Raptor: the tests contain deep stubs, irrelevant names, and a rectangular shape, all of which point to a design problem.