News for hackers. Stuff that matters.
Re:An Unexpected Benefit of Unit Tests by HideousKojima on Saturday January 21, 2023 @01:46PM (#34468991)
Also most examples of unit tests that I see in various examples I've seen amounted to testing "Does the code do what the code does?" Unless you have a clear spec to implement, or you have some weird edge cases that you need to make sure get handled correctly, I see very little use in unit tests (integration tests are very helpful though). The only time I've really used unit tests were when we had some specific financial formulas that we were implementing and needed to make sure the code matched them.

There are no comments on this comment yet.