r/Clojurescript • • Feb 17 '21

Browser-based cljs tests

Hello Clojurians! I'm wondering if anyone out there is currently writing and running browser-based tests for a large cljs project. I used to work on huge react and angular apps and wrote browser-based UI tests, like in the style of react testing framework.

I've been having a hell of a time getting this kind of testing up and running for a reagent project. Right now I'm using devcards as the test harness for my reagent components and can successfully run tests against them in a dev browser, but now I'm trying to figure out how to run these tests with karma (to run them in CI).

I realize this isn't really what devcards is for, but basically I'm looking for something like Jasmine's testing UI/component harness.

Is anyone doing this in cljs?

9 Upvotes

11 comments sorted by

View all comments

Show parent comment

1

u/Liistrad Feb 18 '21

I'm using cljs daily for a large front-end project, sharing code with cljs node scripts and cloud functions, and with clojure backends. It feels really awesome tbh. Can't imagine really going back.

1

u/kemclean Feb 18 '21

nice :) sounds similar to my day-to-day.