This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-02-09
Channels
- # announcements (3)
- # babashka (17)
- # beginners (75)
- # calva (43)
- # cider (1)
- # clj-kondo (54)
- # cljdoc (8)
- # cljs-dev (70)
- # clojure (83)
- # clojure-europe (27)
- # clojure-nl (4)
- # clojure-norway (4)
- # clojure-spec (8)
- # clojure-uk (13)
- # clojured (2)
- # clojurescript (47)
- # community-development (4)
- # conjure (2)
- # cursive (3)
- # datomic (5)
- # emacs (5)
- # events (3)
- # fulcro (13)
- # graalvm-mobile (19)
- # helix (2)
- # introduce-yourself (1)
- # jobs (2)
- # jobs-discuss (28)
- # kaocha (9)
- # livestream (11)
- # malli (15)
- # meander (24)
- # nextjournal (8)
- # off-topic (26)
- # pathom (1)
- # pedestal (8)
- # polylith (2)
- # portal (31)
- # re-frame (4)
- # reagent (10)
- # reitit (8)
- # remote-jobs (3)
- # sci (1)
- # shadow-cljs (66)
- # spacemacs (20)
- # testing (6)
- # vim (15)
- # xtdb (7)
Is there a way for kaocha to load a src namespace first, before any other namespace? I'm started to look at a project that uses lein + midje and for reasons, a particular namespace has to be loaded first. Trying to replicate this usings deps and kaocha, with no success so far.
Have you tried the preload plugin? https://cljdoc.org/d/lambdaisland/kaocha/1.0.861/api/kaocha.plugin.preloads
#kaocha/v1
{:plugins [:preloads]
:kaocha.plugin.preloads/ns-names [my.acme.specs]}
is there a good reference for better diffing and error reporting? I've got a custom equality check on very large, complex values. I'd love to give a fancy deep diff of it (especially since it's probably really close to correct)
Kaocha already uses deep-diff2 library for diffing. But if you want to override it for specific equality checks I think it can be done using something like
(defmethod kaocha.report/print-expr custom= [{:keys [expected actual]}]
(println expected actual)))
Then when you do
(is (custom= ...))
This will runI am not super sure as this is mostly for the summary, not sure if this helps you!