kaocha

Official support channel: https://clojureverse.org/c/projects/kaocha
plexus 2020-08-17T13:32:25.086400Z

@reefersleep 1.0.658 is out! first release in over a month, it includes several hooks improvements. This should help to get your hook to run.

1
🤘 1
plexus 2020-08-18T07:24:22.094Z

Hmmm yeah that's supposed to work too. I'll have a look to see what's missing.

reefersleep 2020-08-19T20:46:59.104800Z

In any case, the blame functionality is working as expected. Thanks a bunch, @plexus!

plexus 2020-08-20T15:00:33.009400Z

Cool!!! Would you be able to share the code?

reefersleep 2020-08-20T16:13:00.014500Z

Sure 🙂 I could make a repo that does only this, with code annotations and a README that explains how to work with it. Maybe others would find that handy.

reefersleep 2020-08-20T16:14:13.014700Z

In that case, did you make is so that :post-summary is available from the REPL? That would remove what would otherwise be a small blemish in the ease of understanding how to work with it.

plexus 2020-08-21T04:05:05.014900Z

I thought so. If you're gonna put it in a separate repo then it makes sense to make it a plug-in. I can help with that.

reefersleep 2020-08-17T13:32:47.086800Z

Thanks! I’ll try it right away 😄

reefersleep 2020-08-17T13:51:48.086900Z

Should my tests.edn be like this? I still can’t get :post-summary output.

#kaocha/v1
    {:tests                     [{:id          :unit
                                  :test-paths  ["test"]
                                  :ns-patterns [".*"]}]
     :plugins                   [:kaocha.plugin/hooks]
     :kaocha.hooks/post-summary [util.hooks/blame-report]}

plexus 2020-08-17T13:52:28.087100Z

that looks correct, let me try that

reefersleep 2020-08-17T13:53:41.087300Z

I tried just :post-summary without the ns, that didn’t work either

plexus 2020-08-17T13:54:05.087600Z

you definitely need the ns

plexus 2020-08-17T14:06:55.087800Z

bugfix release incoming...

plexus 2020-08-17T14:10:45.088Z

please try 1.0.663, sorry for the hassle

reefersleep 2020-08-17T15:43:24.088500Z

Are you kidding, you’ve been a tremendous help 🙏☺️

reefersleep 2020-08-17T15:43:55.088700Z

So, :kaocha.hooks/post-summary works when running lein test now, but not in the REPL.

reefersleep 2020-08-17T15:44:18.088900Z

That’s great!

reefersleep 2020-08-17T15:44:24.089100Z

I’m in doubt about whether you wanted to enable it in the REPL, though?

reefersleep 2020-08-17T15:44:56.089300Z

When calling run, that is.