This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-01-30
Channels
- # announcements (20)
- # asami (26)
- # babashka (10)
- # babashka-sci-dev (18)
- # beginners (81)
- # biff (6)
- # calva (6)
- # cider (1)
- # clerk (1)
- # clj-kondo (34)
- # clojure (50)
- # clojure-belgium (1)
- # clojure-berlin (6)
- # clojure-europe (20)
- # clojure-nl (1)
- # clojure-norway (22)
- # clojure-uk (2)
- # clojurescript (1)
- # clr (4)
- # community-development (3)
- # data-science (8)
- # datomic (3)
- # gratitude (1)
- # honeysql (6)
- # instaparse (2)
- # jobs (1)
- # jobs-discuss (13)
- # kaocha (7)
- # london-clojurians (1)
- # lsp (6)
- # malli (8)
- # matcher-combinators (9)
- # missionary (3)
- # nbb (8)
- # off-topic (20)
- # pathom (16)
- # polylith (2)
- # practicalli (3)
- # rdf (1)
- # re-frame (7)
- # reagent (3)
- # releases (2)
- # reveal (6)
- # rewrite-clj (22)
- # shadow-cljs (64)
- # tools-build (7)
- # xtdb (13)
Anyone ever have an issue where the first run with --watch
omits a namespace, while the test plan under the same settings says it should be included, and subsequent runs in the watch loop pick up the namespace?
EDIT: Diagnosed, issue filed.
In the first run, com.colinphill.extra-special
is omitted, but in the second run, after a whitespace change in another file, it is included. Where :env/dev
holds my test dependencies and :run/test
just pulls in Kaocha and sets :main-opts ["-m" "kaocha.runner"]
:
The test plan with the same options shows the omitted namespace:
> clj -M:env/dev:run/test --watch --print-test-plan | rg --regexp "#'([^\s,]+)" --replace '(var $1)' --passthrough | jet --pretty --edn-reader-opts '{:default tagged-literal}' --query ':kaocha.test-plan/tests (map :kaocha.test-plan/tests) (map (map :kaocha.testable/id))'
((:com.colinphill.extra-special.impl.test
:com.colinphill.extra-special.impl.ns
:com.colinphill.extra-special.impl.def
:com.colinphill.extra-special.impl.test.kaocha
:com.colinphill.extra-special
:com.colinphill.extra-special.impl.dialect
:com.colinphill.extra-special.unicode
:com.colinphill.extra-special.impl.extra-spectral
:com.colinphill.extra-special.unicode2))
Discovered the cause and filed an issue: https://github.com/lambdaisland/kaocha/issues/390
tl;dr: I did some odd things and suffered the consequences for my heterodoxy
I'll take a look, thanks!