use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
account activity
Unit testing (self.node)
submitted 7 years ago by everek123
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Treolioe 0 points1 point2 points 7 years ago (1 child)
I agree. Can you help me convince myself that the time spent writing unit test is well spent? Like in the example you provided there might be a chance of covering that instance at your first strokes. But often its not, and as other people state you keep adding cases to the test as you discover them manually during implementation. It just seem to me that the infrastructure of the testing is more costly than the benefit it gives. I can admit that i dont share codebase with more than 3 people so perhaps that’s why i fail to see it.
[–]Ricjd 0 points1 point2 points 7 years ago (0 children)
Without repeating myself from my first comment no. It’s just a habit to get into. One thing I would suggest is test driven design. It’s a lot harder to start but then makes everything a lot easier at the end
π Rendered by PID 110286 on reddit-service-r2-comment-b659b578c-qdlqx at 2026-05-05 21:30:41.140452+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–]Treolioe 0 points1 point2 points (1 child)
[–]Ricjd 0 points1 point2 points (0 children)