Post

Most developers expect a test to fail. Ted M. Young argues that the real value comes from predicting exactly how it will fail. When the result doesn’t match your expectation, you’ve uncovered a misunderstanding before it becomes a bug.

3 reposts2 likes

True. Related (not the exact same), I recently discovered that a passing unit test that expected an exception got the expected exception type for reasons completely unrelated to the expected failure.