March 2015
Intermediate to advanced
236 pages
5h 26m
English
The refactored tests are a thing of simplicity. Readers understand what case is being demonstrated by reading a test’s name. They can focus initially on the act part of the test to know what code is getting executed. They read the arrange part to determine the context in which the test is running, and they read the single assert so they know what the expected result is. Each of these digesting actions happens quickly, far more so than before. The time to comprehend tests reduces from perhaps minutes down to handfuls of seconds.
|
|
Seeking to understand your system through its tests motivates you to keep them as clean as they should be. ... |
Read now
Unlock full access