Kent Beck: “I get paid for code that works, not for tests” (2013)
I&#x27;ll put the question to the other readers:<p>How often do you find, despite having written tests, that there is some bug in your software? And how many of those times did you think that you should have considered it beforehand, rather than that it would be impossible to foresee?<p>In my experience the most useful tests are the ones that came from some unforeseen bug, which was then fixed and a test case built around it, so that it wouldn&#x27;t get &quot;unfixed&quot;.<p>The least useful tests are the ones for cases you know not to invoke, because they are obvious. Like how you know when you divide by a variable, you know it can&#x27;t be zero. So you make sure it can&#x27;t be zero, making the test case a bit moot.