kaocha

Official support channel: https://clojureverse.org/c/projects/kaocha
plexus 2020-11-30T07:22:46.164Z

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.

plexus 2020-11-30T07:24:16.164600Z

Just make sure the namespace/plugin name starts with something else than kaocha., so it's clear that it's third party

✔️ 1
👌 1
2020-11-30T15:41:14.165500Z

ah interesting it looks like if I don't specify a test-id kaocha will just pick the last one defined in tests.edn

2020-11-30T15:41:22.166100Z

if I just run the command with --focusfor example

2020-11-30T15:41:29.166400Z

I guess I always have to specify the test id

plexus 2020-11-30T15:42:39.167400Z

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

2020-11-30T16:23:50.167800Z

ah right ok it's running them all then

2020-11-30T16:24:13.168500Z

running all the suites when you specify something with --focus seems a bit unnecessary though

2020-11-30T16:24:23.168900Z

but I guess it would not know what to run if I don 't specify the test id of course

plexus 2020-11-30T16:25:40.170400Z

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...

2020-11-30T16:26:15.170800Z

yeah maybe it should just error if you try to --focuswithout passing a test-id?

2020-11-30T16:26:26.171300Z

not sure that would ever what you want if you have multiple test ids?

plexus 2020-11-30T16:26:56.171900Z

yeah I tihnk it would be reasonable for that to be an error

2020-11-30T16:36:34.172200Z

I'll open an issue to keep track of it

2020-11-30T22:03:31.172400Z

this seems to work locally https://github.com/lambdaisland/kaocha/pull/180

2020-11-30T22:03:38.173Z

if that's a reasonable approach

2020-11-30T22:04:18.174Z

not sure if only --focus should throw an error or also --focus-meta skip/skip-meta