Fork me on GitHub
#kaocha
<
2019-10-01
>
plexus01:10:08

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

plexus01:10:17

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

plexus01:10:21

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

rickmoynihan09:10:04

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

rickmoynihan09:10:49

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

plexus09:10:03

Ah crap :) let me fix that.

plexus09:10:07

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

👍 4
plexus05:10:04

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

magnars07:10:15

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

plexus11:10:04

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

plexus11:10:50

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

magnars12:10:55

I think the last point is a matter of documentation.

magnars12:10:51

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

plexus12:10:58

yeah fair point, I haven't catered much yet for tool authors 🙂