Fork me on GitHub
#shadow-cljs
<
2021-02-14
>
thheller09:02:31

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.

Carlo09:02:28

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

thheller09:02:33

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

Carlo11:02:39

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 (?)

thheller11:02:35

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

thheller11:02:53

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

thheller11:02:08

usually just a simple node-repl

thheller11:02:03

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

Carlo11:02:19

thanks @thheller 🙌

Oz11:02:03

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?

thheller11:02:02

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

thheller11:02:27

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

Oz11:02:53

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

Oz11:02:31

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