How to Use Test Mocks and Fixtures In Clojure
After we've learned unit testing, at some point, the complexity of the software grows enough for us to reach out to mock functions and set up test fixtures. Mocks are often needed when you have external services that are unavailable under your contro...
tonitalksdev.com6 min read
Toni Väisänen
Consultant | Fullstack Developer | ML Engineer
As Lasse pointed out in Clojurians Slack:
"It might be a good idea to mention the downsides of with-redefs, e.g. if you use a multi-threaded test runner like eftest you will most likely end up with randomly failing tests"