So I have a fairly sizeable Clojurescript application and I’ve been struggling with getting a good test suite going for it for a while now.
I do have some cljs tests against certain namespaces in my frontend code which deal with data manipulation etc. But I am not so sure what to do about testing the frontend UI interactions. Its hard to avoid regressions completely but I would like to catch the rather critical ones which interrupt user workflow.
I had a Clojure+Selenium project where I developed quite a bit of DSL to test my specific app, it was actually quite a nice experience since interaction through REPL was very convenient when you’re testing certain one-step interactions. Easy to keep calling a function to see if a button click is working the right way etc. It was a lot of fun, but even that I am unable to keep up with, because the exciting problem is solved and now its just mindless test building :(.
Perhaps I could further enhance it to a degree where some one else could write the tests, like a custom tool internal tool available to (test) engineers.