kaocha icon indicating copy to clipboard operation
kaocha copied to clipboard

Error when running autogenerated spec tests w/ exec-fn

Open cap10morgan opened this issue 1 year ago • 1 comments

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?

cap10morgan avatar Sep 12 '24 15:09 cap10morgan

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!

plexus avatar Sep 23 '24 13:09 plexus