If you& #39;re going to automate your tests, and you will be automating some, it& #39;s important than you can be confident they run correctly.
So how do you do this?
First, be sure about what you expect from the code, and therefore what you expect from your tests.
I like to run my tests over and over again. Sometimes, I will eventually get results I don& #39;t expect. Then I know they are unreliable, and need firming up.
Another method I use, is to change the code I& #39;m testing. If my test now fails, it was probably correct.
If they always pass, they might be missing something. Is it incomplete? It could be missing an assert statement.