From a9c4778d37dde48762f331bf431c0a4e38e97fb8 Mon Sep 17 00:00:00 2001 From: Leo Poulson <72382759+leo-ppp@users.noreply.github.com> Date: Wed, 26 Oct 2022 16:43:07 +0100 Subject: [PATCH] Correct documentation of `wrap-run` hooks --- doc/10_hooks.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/10_hooks.md b/doc/10_hooks.md index b423f567..46a713fa 100644 --- a/doc/10_hooks.md +++ b/doc/10_hooks.md @@ -172,10 +172,10 @@ Most of Kaocha's hooks have `pre-` and `post-` variants, but we don't have per-test level, in this case you can use `wrap-run` to "wrap" Kaocha's run function. -In particular this wraps `kaocha.testable/-run`, so it receives a two argument function (the arguments are testable and test-plan), and should return such a function. `wrap-run` also receives the test-plan directly. +In particular this wraps `kaocha.testable/-run`, so it receives a two argument function `run` (the arguments are testable and test-plan), and should return such a function. ``` clojure -(defn my-wrap-run-hook [run _test-plan] +(defn my-wrap-run-hook [run] (fn [testable test-plan] (println "about to run" (:kaocha.testable/id testable)) (run testable test-plan)))