3 ms·
> People who don't test don't test because they don't know how. They are hacks. Or maybe they're just doing a different trade off. Do you unit test all of your
by jfim 4y ago
> People who don't test don't test because they don't know how. They are hacks.
Or maybe they're just doing a different trade off. Do you unit test all of your shell scripts and jupyter notebooks?
If not, why is that? Is it that some code is either obvious enough or doesn't warrant having tests for it?
There's a spectrum of testing, from zero tests (which is fine for throwaway code), to testing a few key components and having end to end tests for the rest, to having 100% branch coverage. One should write enough tests that they're confident about the quality of the software that they're shipping, and no more, in my opinion.