This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-12-16
Channels
- # adventofcode (24)
- # announcements (3)
- # aws (3)
- # babashka (16)
- # beginners (88)
- # biff (5)
- # calva (27)
- # cider (15)
- # cljs-dev (70)
- # clojure (87)
- # clojure-austin (3)
- # clojure-belgium (6)
- # clojure-europe (59)
- # clojure-nl (1)
- # clojure-norway (14)
- # clojure-uk (3)
- # clojurescript (37)
- # data-science (2)
- # datalevin (40)
- # datomic (1)
- # emacs (23)
- # events (2)
- # graalvm (13)
- # graphql (7)
- # gratitude (1)
- # holy-lambda (193)
- # inf-clojure (15)
- # lsp (27)
- # malli (9)
- # off-topic (20)
- # polylith (6)
- # reitit (29)
- # releases (2)
- # scittle (13)
- # shadow-cljs (51)
- # transit (15)
- # xtdb (29)
FYI - I’m planning to cut a new CIDER release soon (e.g. within a week), so now it’s a good time to play with the current snapshot or get your last minute patches submitted. 🙂
@dpsutton Lot’s of good options this time around (I’ve been on the move a lot lately), so it will be hard to chose. 😄 I think I’m leaning towards Berlin or Naples, but we’ll see what I’ll decide in the end.
ha you have to bias towards the city you are less likely to visit again in the future when it could serve as a release city
I'm trying to use the CIDER debugger inside a deftest
, but nothing seems to be working. Does CIDER not support that? E.g. #break
is completely ignored when I run the test with , t t
(Spacemacs calls cider-test-run-test
, I think). I need to inspect resources bound by test fixtures, so I do need to use the test runner. What's the usual method?
Yep. Eval'ed form; buffer; saved the file and killed the REPL, jacked in again. Nothing works.
Also updated cider package.
The problem is that if you use cider-test-run-test
it will load the test namespace before running the test
so your instrumentation is gone.
You need to use (clojure.test/test-vars [#'your-test])
or something like that manually from the REPL.
Then your breakpoint inside the deftest your-test
will work.
This is at least the case when using cider-debug-defun-at-point
and the workaround above works reliably, for me.
I'm not exactly sure why it also ignores #break
and #dbg
but the workaround works for those too
test-vars
works 🙂
I wish it were easier, but I can work with this.
Feel free to open a ticket about this. Might also be good to document what @U06BE1L6T mentioned. As I rarely debug tests it never crossed my mind we need to improve something on this front.