r/Clojurescript • u/kemclean • 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?
View all comments
Show parent comment
1
u/kemclean Feb 18 '21
Yeah I feel this.. I appreciate and understand the reasons for the no-batteries-included mentality and do think it's good to be extremely conservative about taking on extra dependencies, but it's a bit extreme with Clojure to the point where it just doesn't make sense to use it for one-off little random app ideas you want to try out. I use cljs at work though and it's not really my place to move to a different framework, so I have some motivation to make the dev experience better.
I'm curious then, does that mean you're not really using cljs for large front-end projects? Are you back to angular/react?