2 ms·
To me, unit tests primary value is in libraries or components where you want confidence before you build on top of them. You can sidestep them in favour of hig
by vidarh 3y ago
To me, unit tests primary value is in libraries or components where you want confidence before you build on top of them.
You can sidestep them in favour of higher level tests when the only place they're being used is in one single component you control.
But once you start wanting to reuse a piece of code with confidence across components, unit tests become more and more important. Same as more people are involved.
Often the natural time to fill in lacking unit tests is as an alternative to ad hoc debugging.