background image
<< When to use is() | How Can I Be Sure The Test Is Right? >>
<< When to use is() | How Can I Be Sure The Test Is Right? >>
Tests Are Sometimes Wrong
Tests Are Sometimes Wrong
The previous example was supposed to be highly contrived to
illustrate that tests are sometimes wrong.
When investigating a test failure, look at both the code and the
test.
There's a fine line of trusting your testing code.
Too much trust, and you'll be chasing phantoms.
Too little trust, and you'll be changing your tests to cover up bugs.