This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-10-23
Channels
- # aws-lambda (2)
- # beginners (40)
- # calva (9)
- # cider (17)
- # clojure (84)
- # clojure-europe (13)
- # clojure-nl (1)
- # clojure-norway (77)
- # clojure-uk (26)
- # conjure (1)
- # cursive (7)
- # datomic (7)
- # events (1)
- # exercism (1)
- # gratitude (2)
- # hyperfiddle (4)
- # improve-getting-started (10)
- # jobs-discuss (12)
- # malli (4)
- # missionary (12)
- # off-topic (22)
- # other-languages (4)
- # pedestal (3)
- # portal (6)
- # reagent (6)
- # reitit (1)
- # releases (1)
- # ring (4)
- # shadow-cljs (2)
- # thejaloniki (2)
- # tools-build (27)
- # tools-deps (4)
- # vim (6)
I'm pretty confident the answer is yes...
I'm asking cause, I was receiving different behaviors using the Calva command. For this specific case, running the Calva Command(Run Current Test), the test fails, but using clojure.test/run-test-var
the test pass. I tried to reproduce to bring more details but I couldn't 😢 .
Is anyone suffering a similar issue using calva commands to run tests?
Does the test fail or throw an exception? Are there fixtures involved (and perhaps Run Current Test vs run-test-var
have a different approach to invoking fixtures)?
run-test-var
specifically invokes fixtures, test-var
does not -- so maybe the Calva/CIDER Run Current Test uses the latter instead of the former?
(`clojure.test` is a bit of a mess in terms of what invokes fixtures an what doesn't)
@U0ETXRFEW Can you clarify exactly what Run Current Test does?
I think that’s a question better directed at the #C17JYSA3H folks. “Current” in Calva’s context means the test where the cursor is (the current top level form). We take the symbol and invoke the cider-nrepl op test-var-query
. What actually goes on in there I haven’t dug in to…
Thanks. Now I know where to look in CIDER 🙂 OK, so it mostly reproduces the whole of clojure.test
(!) but it looks like fixtures absolutely should be run for that as well.
So there ought to be no difference between running Run Current Test via Calva and clojure.test/run-test-var
-- so I guess we need more info from @U9N15525C to move forward...