How I Learned to Love Unit Testing with Toothpick

1 · Groupon · Oct. 13, 2017, 10:18 p.m.
There are tons of reasons why we should write unit tests. Unit tests help you find bugs in your code and improve your code design as well. You can find many good threads explaining why unit tests are worth your time. But in this blog post, rather than discussing why unit tests are important, I want to introduce a new Dependency Injection library called Toothpick, which can make unit testing simpler.MockingIn object-oriented programming, a class usually depends on other classes. However, as a goo...