This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-12-11
Channels
- # adventofcode (31)
- # announcements (6)
- # babashka (5)
- # beginners (93)
- # calva (15)
- # cider (20)
- # cljs-dev (16)
- # clojure (159)
- # clojure-berlin (1)
- # clojure-dev (5)
- # clojure-europe (9)
- # clojure-italy (9)
- # clojure-losangeles (2)
- # clojure-nl (26)
- # clojure-spec (7)
- # clojure-uk (33)
- # clojurescript (54)
- # clojutre (5)
- # cursive (20)
- # datomic (23)
- # emacs (19)
- # events (1)
- # expound (1)
- # figwheel-main (1)
- # fulcro (104)
- # hyperfiddle (1)
- # jobs (1)
- # luminus (10)
- # malli (59)
- # nrepl (1)
- # off-topic (11)
- # pathom (5)
- # planck (15)
- # reagent (13)
- # reitit (8)
- # rewrite-clj (10)
- # ring-swagger (3)
- # shadow-cljs (129)
- # tools-deps (46)
- # xtdb (14)
- # yada (1)
so every now and then the topic of cljs test support in calva comes up
right now it doesn't quite work
calva has some nice features for clj like "run this test" and "run all tests in the namespace"
I don't quite remember the particulars of why running cljs tests in Calva was hard, but I remember it just was
I was looking at @plexus’s https://github.com/lambdaisland/kaocha
it's a test runner for clj and cljs
one thing stood out while looking at why kaocha doesn't quite work with shadow-cljs atm (https://github.com/lambdaisland/kaocha-cljs/issues/2)
> Kaocha works differently from most ClojureScript test runners in that it works against a REPL backend, rather than first compiling a single big JS blob and running that. This is quite deliberate, because of the dynamic nature of Kaocha. We send commands to the REPL to start tests one by one, then use a websocket to send `cljs.test` events back to Kaocha and route them to the kaocha reporter.
this looks like a great fit for tooling like Calva
makes me wonder if Kaocha usage could enable cljs testing in calva
Kaocha is written with tooling in mind, have a look at the kaocha.api
and kaocha.repl
namespaces for this, also https://github.com/liquidz/kaocha-nrepl
Cool. I've been planning to check out Kaocha for a while now. Great if it can help with the cljs story.