This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-08-31
Channels
- # announcements (3)
- # aws-lambda (1)
- # babashka (122)
- # beginners (241)
- # calva (28)
- # cider (7)
- # clara (7)
- # clj-kondo (43)
- # clojars (5)
- # clojure (326)
- # clojure-europe (60)
- # clojure-italy (2)
- # clojure-nl (4)
- # clojure-spec (21)
- # clojure-uk (4)
- # clojurescript (162)
- # cursive (30)
- # datomic (3)
- # editors (5)
- # emacs (4)
- # figwheel-main (1)
- # fulcro (24)
- # gratitude (3)
- # helix (7)
- # honeysql (20)
- # improve-getting-started (1)
- # introduce-yourself (11)
- # jobs (3)
- # joker (2)
- # kaocha (15)
- # lsp (21)
- # lumo (2)
- # meander (3)
- # off-topic (34)
- # re-frame (6)
- # reagent (1)
- # releases (4)
- # rum (2)
- # shadow-cljs (37)
- # spacemacs (16)
- # tools-deps (16)
- # vim (23)
- # xtdb (32)
Hi! We are users of kaocha-cljs2, and find it to be a great experience. I was just wondering: Since the different concerns are so well separated, is it possible to use chui as a UI for running JVM-tests? Would it just be a matter of writing a WS-client that sends results to funnel, or are there parts on the chui side that are not compatible?
Hey, super happy to hear you're happy with kaocha-cljs2. I'm not sure many people have made the effort. What company are you at? Yes, using Chui as a general kaocha UI should be possible, it's just a matter of inserting state into chui's atom. The devil is in the details, like making sure specific kinds of assertions are rendered properly.
Not sure I’m allowed to disclose my company, but will do after asking 🙂 The docs stated the setup is more complex, but I was surprised to find that with shadow-cljs a very minor config was needed, and no funnel. I launched funnel at first, but killing the funnel process made no difference in functionality.
Looking at my current config, only changes are :extra-deps
on kaocha-cljs2 and chui, and switching the runner-ns
in the shadow test build.
I suppose not too many people are interested in something like chui for JVM-tests then.
> no funnel that's not possible 🙂 either the funnel process is still running in the background, or there's an embedded funnel running in one of the JVMs. We don't have a way for kaocha to communicate with the JS environment without funnel.
> I suppose not too many people are interested in something like chui for JVM-tests then. People will accept very bare-bones tooling until they've seen something better (and sometimes prefer because of fewer moving pieces)
Not possible without funnel? I thought so too, then this is interesting 🙂 I just tried the following: • Rebooted my mac • Launched my shadow-cljs test build. • Opened chrome with http://localhost:8021/ • Shows my tests passing • Change a test file to fail a test • Reload happens, test suite is run and the correct test is failing
In fact you are probably right. I’m building tests with shadow-cljs :browser-test
target, and using :runner-ns lambdaisland.chui.shadow.browser-runner
are you saying i could remove my dependency on kaocha-cljs2, and leave only chui, and things would work the same?
Sorry for the confusion, I thought kaocha-cljs2 was doing something there, but maybe not