3 ms·
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 spe
by HideousKojima 4y ago
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.