- After editing source files, use brepl to
requirethe changed namespace with:reloadand test interactively, rather than relying solely oncurlorbb test.
- Call handlers directly — Ring handlers are pure functions (request map → response map). Test them in brepl without going through HTTP or middleware:
(handlers/home-handler {}),(handlers/inspect-handler {}). Inspect response structure with(keys resp)before dumping the full body. - Verify routes with Reitit — Use
reitit.core/match-by-pathto check route matching interactively without a browser:(reitit.core/match-by-path (reitit.ring/router app-routes/routes) "/"). Useful for verifying newly added routes before integration testing. - Compose and inspect HoneySQL queries — Build queries incrementally as data and preview the generated SQL with
(honey.sql/format query {:quoted true})before sending to the database. This lets you verify correctness without executing a