Browse Part V: Building Applications with Clojure

15.5 Mocking and Stubbing in Clojure

In this section

  • 15.5.1 Purpose of Mocks and Stubs
    Explore when and why to use mocking and stubbing in Clojure tests, especially when handling side effects and external systems.
  • 15.5.2 Mocking Libraries
    Explore mocking libraries and techniques in Clojure for effective testing, such as clojure.test.mock and with-redefs, to simulate and replace functions during testing processes.
  • Writing Tests with Mocks
    Explore how to write tests using mocks or stubs in Clojure to isolate code and improve test accuracy and efficiency.
Saturday, October 5, 2024