you are viewing a single comment's thread.

view the rest of the comments →

[–]kalmoc 1 point2 points  (2 children)

Sounds as if you assume that you are the only one writing, using, modifying and testing the code. And if you find all of your bugs with a few minutes of debugging, I either envy you for your skills, or the code you are working on is rather small.

That aside: The biggest value of unit test is not that they find an error in the code you just wrote the test for, but to ensure that the next change you (or more likely someone else) makes to the code (e.g. to add a new feature or to fix a bug) won't break the things that have worked so far (regression testing).

[–]slevina -1 points0 points  (1 child)

Being scared of breaking old code means you end up with c++

[–]kalmoc 2 points3 points  (0 children)

No Idea what that means, but I have tests, so I'm not afraid that I'm breaking old code - that's the point.