kaocha
kaocha copied to clipboard
Error when running autogenerated spec tests w/ exec-fn
When I run autogenerated fdef spec tests with the exec-fn entry point, I get this exception on failures:
Exception: clojure.lang.ExceptionInfo: Cannot print check results with default printer. Use 'set!' or 'binding' to use Expound printer
This appears to be caused by exec-fn not having something similar to this in -main*: https://github.com/lambdaisland/kaocha/blob/15e553ddba5497a91099f0edda8433d66ef1094f/src/kaocha/runner.clj#L148
Should something like that be added to exec-fn too? Or should this code be refactored so that the -main entry point calls the exec-fn entry point after parsing CLI opts into the tools-deps -X map format?
Hi Wes,
exec-fn is community contributed and not officially supported , we recommend sticking to bin/kaocha as documented. However PRs to improve it are welcome.
Thanks!