kaocha

Official support channel: https://clojureverse.org/c/projects/kaocha
2019-09-16T10:12:58.001800Z

Hi! I'm trying to use kaocha whilst using orchestra to instrument my functions. But when there is a spec problem with :args and :ret, it prints something like

Exception: java.lang.ClassCastException: class clojure.lang.Keyword cannot be cast to class java.lang.Number
Whereas with clojure.test I get
FATAL: Failed spec:
(2) - failed: vector? in: [3 0] at: [:args :search-params]
Is there any way around this?

plexus 2019-09-16T11:38:38.002500Z

do you have a stacktrace for that exception? how/where/when are you calling orchestra?

plexus 2019-09-17T09:18:50.003800Z

@hjrnunes I would ask in #expound, this seems to be happening on an internal datastructure of expound

2019-09-17T10:12:24.004Z

Ok, thanks. Is this because Kaocha calls Expound? It doesn't happen with clojure.test

2019-09-16T15:59:10.002900Z

Hi. Calling orchestra in a namespace with

(ns myapp.test.instrument
  (:require [clojure.test :refer :all]
            [orchestra.spec.test :as st]))

(st/instrument)

2019-09-16T16:00:24.003200Z

2019-09-16T16:01:03.003600Z

It triggers for a :ret spec in an fdef.