Fork me on GitHub
#om
<
2016-08-25
>
ag02:08:03

Guys, so I’m just dipping my toes into deep waters of testing CLJS apps. Official om.next document describes running things in the repl. But how I would run it in CI for example? Should I use lein doo or something? What do the cool kids use these days to run Cljs tests?

grzm13:08:49

@ag The examples I've seen have been using devcards. Untangled (http://untangled-web.github.io/untangled/) has a testing story, though I haven't looked into it. Ladderlife has some interesting stuff with full stack testing (https://github.com/ladderlife/om-fullstack-example https://www.youtube.com/watch?v=M1Tl-YLqkQc)

grzm13:08:04

I haven't decided what approach I'm going to take yet. I definitely want to have some kind of tests for the front end. And I think clojure.spec might be applied in interesting ways as well.

therabidbanana16:08:19

For CI currently we use a combination of unit tests via untangled+boot-cljs-test and also a script we wrote to screenshot all of our devcards.