|"Wrap the kerodon test in a binding to that returns the test report counters that can be tested for :pass, :fail, etc."|
|`(binding [clojure.test/*report-counters* (ref clojure.test/*initial-report-counters*)]|
|"Return true if the kerodon test function passed as arg runs without reporting a test failure."|
|`(let [report-counters# (wrap-kerodon-test ~test_func)]|
The macros here allow you to use Kerodon expressions but get them to return either true or false rather than just writing a report to clojure.test
Where session-state in this example is an atom that contains the state returned from a Kerodon expression e.g.