lambdaisland / kaocha

Full featured next gen Clojure test runner
https://cljdoc.org/d/lambdaisland/kaocha/
Eclipse Public License 1.0
799 stars 84 forks source link

Error when running autogenerated spec tests w/ exec-fn #445

Open cap10morgan opened 1 month ago

cap10morgan commented 1 month ago

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?

plexus commented 1 month ago

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!