Fork me on GitHub
#cider
<
2023-09-26
>
hifumi12302:09:43

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?

1
hifumi12302:09:20

I somehow missed that. Thanks for sharing

👍 1
vemv13:09:07

ℹ️ 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

3
vemv13:09:26

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)))

❤️ 1
aisamu14:09:06

Thank you!

vemv15:09:51

Cheers! Kudos also go to @U5JGH2F89

🎉 1
🤝 1