This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-11-30
Channels
- # adventofcode (4)
- # aleph (1)
- # announcements (7)
- # aws (10)
- # babashka (23)
- # beginners (23)
- # calva (20)
- # chlorine-clover (13)
- # cider (17)
- # clj-kondo (13)
- # cljfx (9)
- # cljsrn (9)
- # clojure (98)
- # clojure-australia (1)
- # clojure-dev (15)
- # clojure-europe (127)
- # clojure-nl (4)
- # clojure-sanfrancisco (3)
- # clojure-uk (98)
- # clojurescript (25)
- # community-development (8)
- # core-async (15)
- # cryogen (9)
- # cursive (7)
- # data-science (1)
- # datascript (5)
- # datomic (3)
- # devcards (2)
- # fulcro (5)
- # graalvm (1)
- # helix (8)
- # jackdaw (1)
- # jobs (5)
- # kaocha (17)
- # malli (5)
- # meander (5)
- # off-topic (37)
- # pathom (33)
- # pedestal (3)
- # re-frame (12)
- # reitit (1)
- # remote-jobs (3)
- # sci (1)
- # shadow-cljs (6)
- # testing (1)
- # vim (6)
- # vrac (5)
I would push it clojars, I don't think that's overkill. For deps.edn user's a git repo or even a gist would be enough, but then you're excluding lein/boot users.
Just make sure the namespace/plugin name starts with something else than kaocha.
, so it's clear that it's third party
ah interesting it looks like if I don't specify a test-id kaocha will just pick the last one defined in tests.edn
if I just run the command with --focus
for example
I guess I always have to specify the test id
not sure what you're referring to @andrea.crotti... in tests.edn you can leave off the test id, then it will default to :unit
(so you should only omit it at most once). If you don't put a test suite name on the command line it will run all suites
ah right ok it's running them all then
running all the suites when you specify something with --focus
seems a bit unnecessary though
but I guess it would not know what to run if I don 't specify the test id of course
yes, exactly... there's always this kind of chicken and egg problem. This becomes especially problematic when there's significant setup/teardown for a suite, as with kaocha-cljs/kaocha-cljs2, since we can't filter until we know the test plan...
yeah maybe it should just error if you try to --focus
without passing a test-id?
not sure that would ever what you want if you have multiple test ids?
I'll open an issue to keep track of it
this seems to work locally https://github.com/lambdaisland/kaocha/pull/180
if that's a reasonable approach
not sure if only --focus should throw an error or also --focus-meta skip/skip-meta