Re:Most Unit Testing Is Waste (2014) [pdf]
by mobjack on Saturday June 29, 2019 @12:10AM
(#20310772)
95% of the time when a unit test fails for me, it is the test that need fixing instead of my code. It hardly inspires confidence.
[ Parent
| on HN ]
To me this suggests that there is no clear understanding what your units are supposed to do.
My second theory would be that the unit tests are written by the inexperienced developers while the good developers write the other code.
Re:Most Unit Testing Is Waste (2014) [pdf]
by mobjack on Saturday June 29, 2019 @08:57AM
(#20312318)
The tests will involve 5 mocked dependencies just to test a simple if statement. They test the implemention and are a waste of time.
Isolated units that are well tested usually don't need to be updated in my experience so they rarely break.
Re:Most Unit Testing Is Waste (2014) [pdf]
by jrhurst on Saturday June 29, 2019 @11:11AM
(#20313012)
Tests that have 5 mocked dependencies is usually a signed we done messed up somewhere.
Re:Most Unit Testing Is Waste (2014) [pdf]
by littlestymaar on Saturday June 29, 2019 @02:03AM
(#20311017)
That's also my experience, but consider how many of the remaining 5% would have led to a regression that would have gotten shipped in production if the test didn't caught it ? In my experience, this number way above zero.