Category: Testing

  • Dependency Injection in Clojure

    Dependency Injection in Clojure

    Dependency Injection seems like an Object-oriented technique. Can you even do Dependency Injection in Clojure? Yes, you can do Dependency Injection in Clojure. Do you need a Dependency Injection library in Clojure? No, you don’t need a DI library. Instead of that… In a single composition root function, you can pass all of the dependencies…

  • Testing Problems Come From Architecture

    Testing Problems Come From Architecture

    Thanks to Logicroom for teaching me this. With testing problems, the fix is rarely in the tests. The fix is in the architecture. Most tests should be unit tests. With only some “integrated tests” (J.B. Rainsberger) at the edges. But usually, the system is too coupled to have unit tests. The tests make real REST…