This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-08-19
Channels
- # beginners (59)
- # calva (20)
- # cider (25)
- # clj-kondo (12)
- # cljdoc (3)
- # cljsrn (15)
- # clojure (104)
- # clojure-europe (4)
- # clojure-italy (10)
- # clojure-nl (3)
- # clojure-spec (14)
- # clojure-uk (13)
- # clojurescript (33)
- # code-reviews (26)
- # core-async (1)
- # cursive (5)
- # data-science (3)
- # datomic (8)
- # emacs (3)
- # fulcro (5)
- # graphql (3)
- # hoplon (1)
- # jobs-discuss (4)
- # kaocha (14)
- # nyc (1)
- # off-topic (33)
- # pathom (4)
- # pedestal (2)
- # quil (1)
- # re-frame (5)
- # reagent (10)
- # reitit (6)
- # rewrite-clj (3)
- # shadow-cljs (173)
- # specter (7)
- # sql (4)
- # vim (58)
- # yada (3)
@rickmoynihan I feel like this has been discussed before, I'm open to having that configurable, so e.g. you can say
:default-suites [:unit :integration]
and have bin/kaocha
without suite arguments run those two only. PR welcome. While this would make sense in core you could also do it as a plugin, so you can try it out without having to wait on anyone. Always happy to provide feedback if you decide to take a stab at this.@magnars I'm sorry I missed your stream, I've been in offline holiday mode the past week. Do you record/publish your streaming sessions?
Hi all, I come from GitHub Issue 30[1], I'm having the same issue where it's saying --focus-meta
is an unknown option. I've confirmed that I'm using the right version of tools.cli
. This is my command, I'm running it like this for now to ensure that everything aligns
lein with-profile +test run -m kaocha.runner --focus-meta :integration
I got it running once, it was nice 🙂
[1] https://github.com/lambdaisland/kaocha/issues/30I was missing an argument, I had to specify the test ID 😅 The corrected command should look like:
lein with-profile +test run -m kaocha.runner --focus-meta :integration :unit
Also, I believe the filter plugin is necessary :kaocha.plugin/filter
.
That's what the documentation said but the commands above wouldn't work without me explicitly including the plugin.
that's strange... if you have a public repo that reproduces this I'm happy to have a look
Do I have to use the shorthand config? e.g. #kaocha/v1 {}
I'll create a small example see if I can replicate this.
the reader macro does two things, it provides default values:
{:kaocha/reporter [kaocha.report/dots]
:kaocha/color? true
:kaocha/fail-fast? false
:kaocha/plugins [:kaocha.plugin/randomize
:kaocha.plugin/filter
:kaocha.plugin/capture-output]
:kaocha/tests [{:kaocha.testable/type :kaocha.type/clojure.test
:kaocha.testable/id :unit
:kaocha/ns-patterns ["-test$"]
:kaocha/source-paths ["src"]
:kaocha/test-paths ["test"]
:kaocha.filter/skip-meta [:kaocha/skip]}]}
and it normalizes/expands keywords so you can use e.g. :tests
instead of :kaocha/tests
.power users can omit #kaocha/v1 if they know what they are doing, e.g. if you don't want to use the core plugins but instead use your own version of the filter plugin. So long story short yes if you don't add the kaocha/v1 then you need to add the filter plugin yourself.
Ah that makes much more sense, I'll add the reader macro. I'm not a power user 🙂
Adding #kaocha/v1
, made everything much better! Thanks again for your help!
the reader macro does two things, it provides default values:
{:kaocha/reporter [kaocha.report/dots]
:kaocha/color? true
:kaocha/fail-fast? false
:kaocha/plugins [:kaocha.plugin/randomize
:kaocha.plugin/filter
:kaocha.plugin/capture-output]
:kaocha/tests [{:kaocha.testable/type :kaocha.type/clojure.test
:kaocha.testable/id :unit
:kaocha/ns-patterns ["-test$"]
:kaocha/source-paths ["src"]
:kaocha/test-paths ["test"]
:kaocha.filter/skip-meta [:kaocha/skip]}]}
and it normalizes/expands keywords so you can use e.g. :tests
instead of :kaocha/tests
.power users can omit #kaocha/v1 if they know what they are doing, e.g. if you don't want to use the core plugins but instead use your own version of the filter plugin. So long story short yes if you don't add the kaocha/v1 then you need to add the filter plugin yourself.
Adding #kaocha/v1
, made everything much better! Thanks again for your help!