3 ms·
Some unit tests are redundant and only waste time. Others are very useful. Do not write unit tests just because the methodology requires it. Write unit tests w
by pps43 9y ago
Some unit tests are redundant and only waste time. Others are very useful.
Do not write unit tests just because the methodology requires it. Write unit tests when the unit needs to be tested. Typical examples:
* Smoke tests (does this code work at all?)
* Tests for known edge conditions
* Tests for known bugs (to catch regressions)