Exactly.
Most proponents of unit tests use horrible programming languages; they are afraid to change code because anything could break at any time. Stop using those languages and most of the problems 'fixed' by unit testing just disappear.
Re:Why Most Unit Testing Is Waste [pdf]
by juandazapata on Wednesday November 08, 2017 @06:25PM
(#15658152)
Kent Beck, Alan Kay, Martin Fowler and Uncle Bob Martin must be all wrong then.
But, I mostly code C++ and C#, both are strongly typed, so the compiler helps a lot with refactors.