Chapter 16Behavior Smells
Smells in This Chapter
Slow Tests 253
Assertion Roulette
It is hard to tell which of several assertions within the same test method caused a test failure.
Symptoms
A test fails. Upon examining the output of the Test Runner (page 377), we cannot determine exactly which assertion failed.
Impact
When a test fails during an automated Integration Build [SCM], it may be hard to tell exactly which assertion failed. If the problem cannot be reproduced on a developer's machine (as may be the case if the problem is caused by environmental issues or Resource Optimism; see Erratic Test on page ...
Get xUnit Test Patterns: Refactoring Test Code now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.