Chapter 15Troubleshooting and Debugging

Dot, dot, dot, dot, dot.

Tests are passing; looks like it’s time for lunch.

Dot, dot, dot, dot, F.

F? F?

But the code works. I know it does.

I think it does.

Why is my test failing?

One of the most frustrating moments in the life of a TDD developer is when a test is failing and it’s not clear why. In this chapter you’ll look at tools you can use to diagnose failing tests to help improve your testing experience.

Get Rails 5 Test Prescriptions 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.