Re:Unit Testing Is Overrated
by apazzolini on Thursday July 09, 2020 @05:47PM
(#23785610)
One of the benefits of writing tests is that it makes it painfully obvious which parts of your codebase are poorly architected. Difficulty in writing tests is a code smell.
[ Parent
| on HN ]
That's because unit tests couple tightly to your code. If you're trying to couple something additional to your already tightly coupled code it's gonna be painful.
It's a really expensive way of discovering that you wrote shit code.