This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-10-18
Channels
- # announcements (8)
- # aws (5)
- # babashka (69)
- # beginners (37)
- # calva (222)
- # cider (10)
- # clj-commons (8)
- # clj-kondo (69)
- # cljdoc (5)
- # clojure (62)
- # clojure-dev (23)
- # clojure-europe (37)
- # clojure-italy (2)
- # clojure-nl (6)
- # clojure-sg (6)
- # clojure-uk (5)
- # clojurescript (25)
- # clojureverse-ops (12)
- # conjure (1)
- # cursive (1)
- # fulcro (9)
- # gorilla (1)
- # graalvm (6)
- # graphql (1)
- # gratitude (1)
- # honeysql (7)
- # introduce-yourself (4)
- # jobs (1)
- # kaocha (9)
- # keyboards (4)
- # leiningen (8)
- # lsp (21)
- # malli (9)
- # music (3)
- # nextjournal (17)
- # nrepl (6)
- # off-topic (10)
- # pathom (12)
- # portal (25)
- # reagent (8)
- # releases (1)
- # specter (1)
- # xtdb (1)
I have a weird minor issue with kaocha tests with watching enabled: the suite is executed twice instead of once on change of a source file. Anyone a clue as to why this happens?
That's odd. My first thought would normally be that your namespace includes something like (clojure.test/run-tests)
inside it.
Since it only happens with --watch
, it could be due to your editor (or some other process) modifying some temporary file that Kaocha is watching for some reason.
@U01FJUDL57C that's the direction I'm searching in, I probably need to dig a little deeper. @U07FP7QJ0 yes, I usually run with a focus.
Made some progress: running twice on save is probably caused by an IntelliJ setting:
however the assertion count is sometimes 2x what I expect, possibly related to this issue: https://github.com/lambdaisland/kaocha/issues/245 Not a big problem for me though, so I'm going to stop digging for now ;-)
Fair enough. 🙂 Let us know if you find any bugs or need further troubleshooting help! If it is due to #245, then it should be fixed by upgrading to the latest Kaocha.
{:kaocha/tests [{:kaocha.testable/type :kaocha.type/clojure.test
:kaocha.testable/id :unit
:kaocha/ns-patterns ["-test$"]
:kaocha/test-paths ["src/test"]
:kaocha/source-paths ["src/main"]
:kaocha.filter/focus [
;; ... more ...
"nexus.core.model.stonepath-test"
;; ... more ...
]}]
:kaocha/reporter [;kaocha.report/dots
fulcro-spec.reporters.terminal/fulcro-report
]
:kaocha/fail-fast? false
:kaocha/color? true
:kaocha/plugins [:kaocha.plugin/filter ;; allows focus filter - comment out to run ALL tests
;:kaocha.plugin/print-invocations
;:kaocha.plugin/debug
;:kaocha.plugin/capture-output
;:kaocha.plugin/profiling
]
:kaocha.plugin.profiling/count 1
:kaocha.plugin.profiling/profiling? false
:kaocha.plugin.randomize/randomize? false}