|
|
|
|
|
by hbrn
1386 days ago
|
|
There's this stupid dogma: tests are good, codebase without tests is bad. It is incredibly hard to fight the idea of "we need more tests" because of that. Anytime engineering team gets some freedom, tests are usually the first thing they decide to work on. But tests aren't inherently good. Good tests will speed you up, bad ones will slow you down. And it is incredibly hard to write good tests. Might be even harder than writing software that tests supposed to test: If software works in 80% of cases, it creates 80% of value. If tests work in 80% of cases, they cause harm in the remaining 20%. |
|
Want to extract some logic into a new interface or introduce a new parameter to a method?
Well, now instead of just doing that, you will also have to update all tests dealing with said logic.
At my previous job I spent much more time updating tests testing trivial shit than actually writing useful code.