The high cost of free testing
engineering.block.xyz·3d·
Discuss: Hacker News
🔧Code Refactoring Patterns
Preview
Report Post

I hold the generally unpopular opinion that we write too many tests. Most tests written have negative value and should not only not have been written, we’re better off actively deleting them. Most tests don’t ever catch bugs. They fail when the underlying code changes as intended, not when it breaks. The result is a growing tax on improvement disguised as safety.

This used to just be one of my grumpy opinions. The cost of overtesting was bounded by the effort it took to write tests. Before coding agents came along, that effort kept things in check. Now you can generate a full suite of tests in seconds, and the balance has flipped. Writing tests is now free, but comes at a high cost.

Let’s talk about how we measure the value of a test. The default assumption seems to be that mo…

Similar Posts

Loading similar posts...