This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-09-26
Channels
- # aleph (3)
- # announcements (6)
- # babashka (14)
- # beginners (8)
- # biff (16)
- # calva (4)
- # cider (7)
- # clj-kondo (8)
- # cljs-dev (26)
- # clojure (65)
- # clojure-austin (2)
- # clojure-brasil (1)
- # clojure-europe (35)
- # clojure-nl (4)
- # clojure-norway (45)
- # clojure-portugal (1)
- # clojure-uk (9)
- # clr (5)
- # community-development (6)
- # conjure (1)
- # cursive (3)
- # events (8)
- # fulcro (1)
- # honeysql (19)
- # hyperfiddle (31)
- # introduce-yourself (1)
- # lsp (7)
- # matcher-combinators (10)
- # off-topic (17)
- # practicalli (1)
- # ring (30)
- # shadow-cljs (6)
- # testing (2)
To help with https://github.com/lilactown/helix/issues/146
Some change in clojure-mode (or CIDER) causes the $
macro to indent as if by :style/indent 1
… is this intentional?
ℹ️ CIDER master
/
features a revamped cider-test-run-test
(run test at point).
Now, it will run the first valid test found at point for:
• the current *cider-test-report*
failure
• deftests, and deftest-like forms (`cider-test-defining-forms` is no longer necessary and now deprecated) in the current namespace
• :test
metadata that may be present in vanilla defns
• deftests for the current src/
defn, as found (and configurable) by cider-test-infer-test-ns
◦ We search for a var named foo-test
in that inferred ns, falling back to foo
Docs: https://docs.cider.mx/cider/testing/running_tests.html
The usual caveat that tests must be loaded beforehand still applies. You may want a customization such as:
(advice-add 'cider-test-run-test :around
(lambda (f &rest args)
(save-buffer)
;; Or `(cider-load-buffer)`, `(cider-eval-defun-at-point)`, etc:
(cider-sync-tooling-eval "((clojure.core/resolve 'clojure.tools.namespace.repl/refresh))")
(apply f args)))