November 2024
Intermediate to advanced
300 pages
7h 12m
English
A well-structured test distills the interaction with the system to three steps: arranging the data, acting on the system, and asserting on the results (see Scannability: Arrange—Act—Assert). Although the test requires detailed code to accomplish each of these steps, you can improve understanding by organizing those details into abstractions—code elements that maximize the essential concepts and hide the unnecessary details.
|
|
Good tests provide examples of how clients interact with the system. |
The following part of the test starts with a statement that appears to be the act step—a call to search.getMatches() ...
Read now
Unlock full access