This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-09-13
Channels
- # aleph (3)
- # aws (1)
- # beginners (97)
- # boot (41)
- # cider (7)
- # clara (105)
- # cljs-dev (4)
- # cljsrn (66)
- # clojure (185)
- # clojure-argentina (2)
- # clojure-colombia (15)
- # clojure-czech (1)
- # clojure-dusseldorf (8)
- # clojure-greece (2)
- # clojure-italy (5)
- # clojure-russia (33)
- # clojure-spec (14)
- # clojure-uk (9)
- # clojurescript (75)
- # cursive (6)
- # data-science (1)
- # datomic (12)
- # emacs (2)
- # fulcro (71)
- # funcool (1)
- # jobs (6)
- # jobs-discuss (62)
- # juxt (21)
- # lein-figwheel (1)
- # luminus (9)
- # lumo (41)
- # off-topic (39)
- # om (12)
- # onyx (1)
- # portkey (2)
- # protorepl (4)
- # re-frame (14)
- # reagent (50)
- # ring (3)
- # shadow-cljs (6)
- # spacemacs (38)
- # specter (8)
- # test-check (14)
- # testing (52)
- # unrepl (2)
@cjhowe you have a pure render function. If you actually want to “test” the UI, you could do visual regression testing like this: https://medium.com/adstage-engineering/how-we-test-our-full-stack-clojure-app-b18d79ee9e00 I personally find a very low return on investment in end-to-end testing from the UI. But the visual regressions are a cool idea.
yeah, i kinda agree about end to end tests, but i need to test my components somehow. regression testing sounds like a good idea
If your data model works, and your UI renders properly when given correct data, then you’ve pretty much got it. The rest of the bugs would be in “hooking it up”, which are easy to catch, and easy to fix
e.g. rarely regress in a way that automation is going to help with (from a cost/benefit perspective). I’ve been at places where we paid $150k+ for people that did nothing but write and maintain e2e tests that rarely caught anything useful (and never caught anything real that a better testing approach couldn’t have caught better, with more clarity, less maintenance, and fewer false positives)
sounds like i should just wait until i have specific problems i would need those tests to solve
I like e2e tests for smoke testing: is the system, in general, operational. Very low coverage, but kicks the tires. useful for devops and such.
I also like to integration test (e.g. at a given layer). For example, when I was recently developing fulcro-sql, I wrote quite a few tests that actually hit a live database. Then I write logic tests on the bits of layer above that, etc. I get pretty good results, with pretty compact and maintainable tests.