This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-09-05
Channels
- # announcements (4)
- # beginners (21)
- # calva (3)
- # clj-http (3)
- # clj-kondo (10)
- # clojars (5)
- # clojure (4)
- # clojure-europe (5)
- # clojurescript (71)
- # datomic (3)
- # fulcro (18)
- # helix (5)
- # introduce-yourself (2)
- # missionary (1)
- # off-topic (19)
- # polylith (21)
- # reagent (3)
- # shadow-cljs (28)
- # tools-deps (6)
- # xtdb (30)
Does anyone know if there's a way of getting both spec instrumentation/outstrumentation and generative testing? Using Ghostwheel, I can say:
This works, and gives me the error in (g/check)
, but doesn't protest when I try to do the code in the comment (I get the exception), so I don't really get instrumentation/outstrumentation
I'm sure ghostwheel's authors invented this neologism and not you, but I have to say "outstrument" is an extremely painful pun
Here instead I added the :outstrument true
option, and now I get the warning when I execute (addition "hey" 3)
, but the error I get from generative testing is all garbled, something like:
| |> FAILED: addition – Spec check
| |
{:file "Matcher.java",
:line 1770,
:type :error,
:expected
(clojure.core/and
(clojure.core/every?
(fn*
[p1__12189__12191__auto__]
(clojure.core/->
p1__12189__12191__auto__
:clojure.spec.test.check/ret
:pass?))
spec-checks__12190__auto__)
... many many lines ...
instead of the nice error I got before. Is there a way of getting both features?