Tests Are Sometimes Wrong
When investigating a test failure, look at both the code and the test.
- Sometimes the code is correct and the test is wrong.
- Remember, tests are just more code and subject to their own bugs.
- There are ways around this, though
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.
It's important to understand why a test failed
- Then you can determine if it's a real failure or a test bug
Prev | toc | Next