Fork me on GitHub
#testing
<
2019-11-08
>
plexus08:11:36

if you want to do custom processing on the timing information you can gather them up in a post-run hook

plexus09:11:56

(ns kaocha-demo.hooks
  (:require [kaocha.testable :as testable]
            [kaocha.hierarchy :as hierarchy]))

(def post-run [test-result]
  (spit "timing.edn"
        (pr-str
         (into {}
               (comp (filter hierarchy/leaf?)
                     (map (juxt ::testable/id :kaocha.plugin.profiling/duration)))
               (testable/test-seq test-result))))
  test-result)

tschady15:11:09

perfect! thanks both