News for hackers. Stuff that matters.
Re:Observations on the testing culture of test-driven develo... by u801e on Wednesday August 15, 2018 @12:05AM (#17763685)
> An even bigger issue I have is the huge reliance on mocking which leads to completely brittle tests and code that can withstand no change without all hell breaking lose.

In my opinion, unit tests should only cover code that doesn't have any side-effects or interact with external dependencies. For example, if you have a method that handles a HTTP request, extracts information from that request, queries a DB, processes the results from the DB

Re:Observations on the testing culture of test-driven develo... by u801e on Wednesday August 15, 2018 @06:26AM (#17764951)
Mods, you can delete the post above and this post. Somehow, it was posted before I finished typing it (the finished version is at this link https://news.ycombinator.com/item?id=17763711).