DEV Community

Discussion on: Are old unit tests useful?

Collapse
 
cathodion profile image
Dustin King

I think an essential part of the red, green refactor cycle is at the refactor stage you should look at the test code too.

That's a good point, and I agree. But when you're refactoring application code, you can rely on the tests failing if you break something (if you have good tests). But if you break a test, it might not fail. Do you temporarily break the app code again to make sure the tests fail in the same way?