This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-11-16
Channels
- # aleph (1)
- # aws (1)
- # beginners (23)
- # boot (33)
- # cider (15)
- # cljs-dev (4)
- # clojure (73)
- # clojure-dev (18)
- # clojure-italy (8)
- # clojure-russia (7)
- # clojure-serbia (1)
- # clojure-spec (8)
- # clojure-uk (118)
- # clojure-ukraine (3)
- # clojurescript (34)
- # code-art (1)
- # community-development (24)
- # cursive (21)
- # data-science (3)
- # datomic (72)
- # defnpodcast (1)
- # fulcro (77)
- # graphql (4)
- # hoplon (8)
- # jobs (3)
- # luminus (3)
- # lumo (7)
- # off-topic (3)
- # onyx (17)
- # other-languages (7)
- # pedestal (1)
- # perun (1)
- # protorepl (21)
- # re-frame (91)
- # ring (4)
- # ring-swagger (18)
- # shadow-cljs (22)
- # spacemacs (37)
- # specter (1)
- # sql (23)
- # test-check (4)
- # unrepl (29)
- # utah-clojurians (3)
- # vim (36)
- # yada (10)
does anyone have a good way to instrument everything before running lein test
from the command line?
@stathissideris leiningen injections ought to do it
@gfredericks thanks, I’ll read up on that 🙂
(defmulti mkop :op)
(defmulti mkop' :op)
(s/fdef mkop
:args (s/cat :args (s/multi-spec mkop' :op)))
(defmethod mkop :sum
[{:keys [a b]}]
(+ a b))
(defmethod mkop' :sum
[_]
(s/keys :req [::a ::b]))
(defmethod mkop :inc
[{:keys [a]}]
(inc a))
(defmethod mkop' :inc
[_]
(s/keys :req [::a]))
There is something wrong with this "pattern" for spec on multispec? Someone else doing something like this? Other options?