In our test case world, we assume a test case fails, unless we log pass. We changed our way of thinking a while ago, where we used to assume a test case passes, unless we log a failure. I wish I could give an example of a bug I’ve caught because of the change, but I’ve never been able to identify one that was caught exclusively because of log pass. I’ve been asking people on my team if they have any examples of bugs and other benefits from the log pass, but most people are on vacation right now. If I get more info from them after the holidays, I’ll do a follow-up post.
Here are some benefits:
If currentLineAfterDelete = currentLine.Remove(whitespaceLocation, 1) Then
LogFailure("Failed to delete whitespace…")
If currentLineAfterDelete <> currentLine.Remove(whitespaceLocation, 1) Then