Unit Tests, How to Write Testable Code and Why it Matters
Writing unit tests can be tough, but it shouldn’t be. If your tests are hard to write, you probably have problems elsewhere. Untestable code is a sign of deeper design problems. In this article, Toptal developer Sergey Kolodiy delivers a comprehensive breakdown of what makes code hard to test, and …