You are viewing a single comment's thread.

view the rest of the comments →

2
2

[–] justletmevoat 2 points 2 points (+4|-2) ago 

Unit tests are overrated.

0
4

[–] TheGuyWithFace 0 points 4 points (+4|-0) ago 

While in certain applications I might agree with you, for a full-featured website like voat I just have to disagree with you. Unit tests can be annoying to write, and their benefit might not be super apparent at first, but in the long run, well written tests are very very valuable IMO.

2
1

[–] justletmevoat 2 points 1 point (+3|-2) ago 

They break stupidly when code changes, and people defend them saying "Oh, well, good unit tests don't do that", and then these good unit tests never exist, and you've got to stub or mock everything, so your tests don't test any fucking thing useful, and then the API for the DB library changes or you have to update versions and you have not only update your tests to that, but also the fucking stubs.

Fuck unit tests - out of all the different kinds of testing possible it is the most useless.

0
1

[–] Tenayden 0 points 1 point (+1|-0) ago 

I agree with @TheGuyWithFace. While unit tests are very annoying to write and more work upfront, the benefit of knowing your broke that ancient obscure method X with a recent change prior to deployment instead of a user asking why X no longer works "like it used to" makes it all worthwhile.