Fork me on GitHub
#clojurescript
<
2018-11-30
>
Oliver George02:11:02

Can anyone explain how to setup a repl for clojurescript using prepl. I'm interested to see what rebl can do based on... https://twitter.com/swannodette/status/1068224062835572739

andre.stylianos13:11:43

According to the testing docs:

By default, these functions will search for all tests defined in
a namespace and run them in an undefined order.
Is anyone aware of a way in which I could make tests in clojurescript run in a fixed order without using test-ns-hook or doing everything manually? (from the docs it seems like test-ns-hook and fixtures don’t play well together) Using lein + doo and running on nodejs, if that makes any difference.

thheller13:11:36

@andre.stylianos no there is no way to influence the order

😕 4
thheller13:11:21

other than manually setting it up with multiple (cljs.test/run-tests 'foo) (cljs.test/run-tests 'bar) ...

andre.stylianos13:11:44

I imagined so… thanks @thheller!

andy.fingerhut13:11:13

You have probably already considered the possibility of taking the code that is currently spread across separate tests, and combine them into one test.

andre.stylianos13:11:08

Yeah, I thought about that, but we’re using re-frame-test and testing async code with run-test-async, which means there can only be one call to it because of it calling (done). Joining everything inside a single test and working around that would probably be more trouble than just running the tests manually… Not to mention the nesting that we would have 😛

andre.stylianos13:11:17

But thanks for the suggestion