Clojure microservices for JavaScript developers part 3
Blog post from CircleCI
This final post in a series for JavaScript developers delves into setting up Clojure microservices, focusing on unit and integration testing, as well as continuous integration (CI) using CircleCI. It highlights the convenient built-in unit testing library, clojure.test, in Clojure, which facilitates test creation by mirroring source directories in a Leiningen project structure. The post explains using the deftest macro for unit testing, mocking external dependencies with the bond/with-stub! library, and employing fixtures for setup and teardown processes similar to Jest in JavaScript. Integration tests involve a system-map for component lifecycle management, including Redis connections and HTTP servers. The article also covers using Kaocha as a test runner and setting up a CI pipeline with CircleCI, which automates tests on every commit to prevent breaking changes, utilizing Docker images for environment setup and caching to optimize build times.
No tracked trend matches for this post yet.
Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.