shadow-cljs

https://github.com/thheller/shadow-cljs | https://github.com/sponsors/thheller | https://www.patreon.com/thheller
thheller 2021-02-14T09:15:31.213700Z

can't comment on cider stuff but :autorun will run tests after compilation. very probable that cider just isn't displaying the output, nrepl is weird in that way.

william 2021-02-14T09:36:28.215200Z

Thanks, and so what's yours set-up for running them?

thheller 2021-02-14T09:39:33.215600Z

either from the REPL or manually. I don't use :autorun

william 2021-02-14T11:02:39.217Z

so, by manually you mean something like

shadow-cljs compile test && node out/node-tests.js
how do you run them from the repl? Since then I discovered that I can open a repl which targets :test that does what I want, but it seems I can only have one repl open in cider (?)

thheller 2021-02-14T11:04:35.217800Z

yes, by manually I mean I run node the-tests.js whenever I want to run the tests. I'll still have the watch running usually to see compile errors and stuff

thheller 2021-02-14T11:04:53.218400Z

from the repl just (cljs.test/run-tests 'the.ns-test) or so

thheller 2021-02-14T11:05:08.218700Z

usually just a simple node-repl

thheller 2021-02-14T11:06:03.219900Z

I don't test much so you should probably ask someone that actually has a test workflow

william 2021-02-14T11:06:19.220200Z

thanks @thheller 🙌

Oz 2021-02-14T11:16:03.221800Z

Hello, I notice that in my app, re-compilation is very fast, but the reload (where the little wheel spins) takes a good 7 seconds, probably because I did something silly. Any idea what may cause the slowdown?

thheller 2021-02-14T11:17:02.222500Z

impossible to say without more info. you can run shadow-cljs watch app --verbose to get a little more info about what is going on

thheller 2021-02-14T11:18:27.223400Z

your code might be doing something that takes a long time when it is getting loaded

Oz 2021-02-14T11:20:53.224100Z

Thank you! I will try the verbose mode and playing with the mount-root function

Oz 2021-02-14T11:24:31.225200Z

Strange, the delay disappeared as soon as I restarted the watch