...
/Cultivate Explicit Diagnostic Tools to Debug Test Failures
Cultivate Explicit Diagnostic Tools to Debug Test Failures
Learn tools to debug the test failures in our Rails application.
We'll cover the following...
A big part of the carrying cost of system tests is the time it takes to diagnose why they are failing when we don’t believe the feature being tested is actually broken. The assertions available to Rails provide only rudimentary assistance. The team will eventually learn to use puts page.html
as a diagnostic tool, but let’s take time now to make one that works a bit better.
Let’s wrap puts page.html
in a method called with_clues
. The with_clues
method will take ...