Kent Beck: “I get paid for code that works, not for tests” (2013)
But we don't write tests to check if our code works. We write tests to be able to change it in the future with certain degree of confidence that we don't break anything and - if so - what exactly.There are other techniques which can give similar confidence, but tests are the easiest one.