advertisement

Article:
  Top 12 Reasons to Write Unit Tests
Subject:   Testing is a wrong way ...
Date:   2003-04-09 06:30:58
From:   anonymous2
By tests you can only prove the existence of errors, not their absence.
Main Topics Oldest First

Showing messages 1 through 1 of 1.

  • Eric M. Burke photo Testing is a wrong way ...
    2003-04-09 06:42:56  Eric M. Burke | O'Reilly Author [Reply | View]

    We never said that tests prove the absence of errors. I will say that tests reduce the number of errors, improve code quality, and help avoid regressions - i.e. re-introducing bugs that were previously fixed.

    A blanket statement like "Testing is a wrong way" is incredibly negative and is not constructive. What is the alternative? No tests, as is done in many organizations? I don't think so.

    Tests are one piece of a much bigger puzzle - they don't solve every problem, but you'll have a lot more problems if you don't bother to write tests.