kaocha

Official support channel: https://clojureverse.org/c/projects/kaocha
denis_krivosheev 2019-10-31T06:47:29.041100Z

Hello! I’m trying to run spec tests from kaocha as documented in https://cljdoc.org/d/lambdaisland/kaocha/0.0-554/doc/automatic-spec-test-check-generation here is my config:

#kaocha/v1
{:tests [{:kaocha.testable/type :kaocha.type/spec.test.check
          :kaocha.testable/id   :spec}
         {:kaocha.testable/type :kaocha.type/clojure.test
          :kaocha.testable/id   :unit}]}

But when I run tests they fail with very weird error message:
➜  posh git:(master) ✗ lein kaocha
[(EE)()()()()()()()()()()()()()][(...............)(.)(...........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................)]
Randomized with --seed 2041032012

ERROR in posh.core/bad-fn (form-init7880913194983466885.clj:1)
Uncaught exception, not in assertion.
Exception: java.util.concurrent.ExecutionException: Syntax error compiling at (clojure/test/check/clojure_test.cljc:95:1).
 at java.util.concurrent.FutureTask.report (FutureTask.java:122)
    java.util.concurrent.FutureTask.get (FutureTask.java:191)
    ...
    kaocha.type.spec.test.fdef$eval3953$fn__3956$fn__3960.invoke (fdef.clj:66)
    kaocha.type.spec.test.fdef$eval3953$fn__3956.invoke (fdef.clj:63)
    ...
    kaocha.plugin.capture_output$capture_output_wrap_run_hook$fn__2634$fn__2635.invoke (capture_output.clj:83)
    ...
    kaocha.plugin.capture_output$capture_output_wrap_run_hook$fn__2634.doInvoke (capture_output.clj:83)
    ...
    kaocha.testable$run.invokeStatic (testable.clj:119)
    kaocha.testable$run.invoke (testable.clj:110)
    ...
    kaocha.testable$run_testable.invokeStatic (testable.clj:189)
    kaocha.testable$run_testable.invoke (testable.clj:148)
    kaocha.testable$run_testables.invokeStatic (testable.clj:202)
    kaocha.testable$run_testables.invoke (testable.clj:192)
    kaocha.type.spec.test.ns$eval4017$fn__4018.invoke (ns.clj:45)
    ...
Could someone please help me with that. I don’t have any spec in repo except two example functions documented in kaocha docs.

denis_krivosheev 2019-10-31T07:47:42.041600Z

Here is the minimal reproduction repo https://github.com/denistakeda/stest