kaocha

Official support channel: https://clojureverse.org/c/projects/kaocha
plexus 2019-10-01T01:40:08.009800Z

{lambdaisland/kaocha {:mvn/version "0.0-549"}} is out, the main thing is support for Aero's #profile {} reader tag, making it easier to have variant configurations, especially for CI.

plexus 2019-10-01T01:41:17.010500Z

I've also added a warning when --focus does not match any tests.

plexus 2019-10-01T01:42:21.010800Z

% bin/kaocha --focus abc                                                                          
WARNING: :focus [:abc] did not match any tests.   

plexus 2019-10-01T01:42:33.011Z

cc @rickmoynihan

πŸ‘ 1
❀️ 1
2019-10-01T09:19:04.012800Z

I think there’s a bug in the WARNING code e.g.

$ ./bin/kaocha --focus mut.ui.nav-test
WARNING: :focus [:mut.ui.nav-test] did not match any tests.
--- all (clojure.test) ---------------------------
mut.ui.nav-test
  nav-bar-integration-test
    All projects have a working home page
      Visiting datasets catalog index page
        Datasets selected in top-level navbar
          Correct tab is selected
,,,

2019-10-01T09:19:49.013100Z

i.e. I see the warning but it finds the test

plexus 2019-10-01T09:32:03.013300Z

Ah crap :) let me fix that.

plexus 2019-10-01T09:45:07.013600Z

releasing the new version now. I did this a little quick quick on the plane and apparently missed a colon and didn't test this properly...

πŸ‘ 1
plexus 2019-10-01T05:24:42.011100Z

https://github.com/liquidz/kaocha-nrepl

plexus 2019-10-01T05:26:04.012600Z

Apparently the vim-iced author created an nREPL middleware for Kaocha. Maybe interesting for you @magnars?

2019-10-02T07:54:15.014300Z

Hmm, I never even thought about that. What is the advantage to this approach? Right now I'm just sending (kaocha.repl/run ...) or (kaocha.repl/run-all ...) via cider-nrepl-request:eval. Seems pretty straight forward to me. πŸ™‚

plexus 2019-10-02T11:48:04.014500Z

Seems he keeps some state on the Clojure side, probably to support "re-run failed tests" or something like that. I guess I'm general it gives you better access to the test results data structure so you can do things like jump to failed test definition

plexus 2019-10-02T11:48:50.014700Z

I'm surprised though you both used kaocha.repl instead of kaocha.api. the repl namespace is optimized for human consumption, not machine consumption

2019-10-02T12:01:55.014900Z

I think the last point is a matter of documentation.

2019-10-02T12:02:51.015100Z

When looking for how I would run tests from code, that's what I found on the kaocha docs site. πŸ™‚

plexus 2019-10-02T12:04:58.015300Z

yeah fair point, I haven't catered much yet for tool authors πŸ™‚