This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-09-11
Channels
- # announcements (7)
- # aws (52)
- # babashka (16)
- # beginners (49)
- # bristol-clojurians (1)
- # calva (2)
- # chlorine-clover (26)
- # cider (6)
- # clara (1)
- # clj-kondo (79)
- # cljfx (15)
- # clojure (82)
- # clojure-berlin (2)
- # clojure-czech (1)
- # clojure-europe (26)
- # clojure-france (91)
- # clojure-germany (48)
- # clojure-nl (7)
- # clojure-norway (99)
- # clojure-uk (54)
- # clojurescript (18)
- # code-reviews (9)
- # data-science (2)
- # datalog (15)
- # datomic (15)
- # depstar (20)
- # emacs (4)
- # events (1)
- # fulcro (30)
- # funcool (1)
- # graphql (1)
- # helix (5)
- # jobs (6)
- # kaocha (12)
- # leiningen (8)
- # luminus (1)
- # malli (13)
- # off-topic (73)
- # pathom (12)
- # portal (11)
- # portland-or (1)
- # re-frame (10)
- # reagent (1)
- # reitit (44)
- # remote-jobs (1)
- # ring (19)
- # shadow-cljs (64)
- # tools-deps (32)
I’m a bit confused. Is spec instrumentation supposed to be on by default? Im not seeing that happening and adding a hook pre-test to enable it causes internal kaocha spec errors on id & type
I am also interested though in what you're seeing, what does your hook look like and what's the error you're getting?
;; tests.edn
#kaocha/v1
{:tests [{:id :all
:type :kaocha.type/clojure.test
:test-paths ["test"]
:source-paths ["src" "specs" "dev/src" "dev/resources" "test/resources"]
:kaocha.hooks/pre-test [dev.check-specs-hook]
:kaocha.hooks/post-test [dev.uncheck-specs-hook]
}
]
:plugins [:kaocha.plugin/filter
:kaocha.plugin/capture-output
:kaocha.plugin/profiling
:kaocha.plugin/hooks]
}
;; Hook
(defn check-specs-hook [suite test-plan]
(check-specs!) ;; fn that only does (stest/instrument)
suite)
no stack trace I guess? it's validating the test plan as if it's a testable, which it isn't, so that there's no id/type is fine, probably some function has too stringent an fdef defined