News for hackers. Stuff that matters.
Re:Professors’ unprofessional programs have created a new pr... by pps43 on Tuesday August 22, 2017 @11:28AM (#15073340)
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)

There are no comments on this comment yet.