fspec requires dependency on test.check

310 views
Skip to first unread message

Joe Selman

unread,
Jul 22, 2016, 12:55:37 AM7/22/16
to Clojure
I have a simple lein project on clojure 1.9.0-alpha10 with no other dependencies. Trying to use fspec and explain yields an error:

(require '[clojure.spec :as s])
=> nil
(s/def ::my-spec (s/fspec :args string? :ret string?))
=> :user/my-spec
(s/explain ::my-spec (fn [_] "foo"))
FileNotFoundException Could not locate clojure/test/check/generators__init.class or clojure/test/check/generators.clj on classpath.  clojure.lang.RT.load (RT.java:458)

Is this a bug or do some uses of spec require a test.check dependency?

Alex Miller

unread,
Jul 22, 2016, 1:02:51 AM7/22/16
to Clojure
Hi Joe,

This is an area of ongoing work and the following ticket captures this issue as well:


Spec by itself should not require a test.check dependency.

Alex

Joe Selman

unread,
Jul 22, 2016, 1:17:14 AM7/22/16
to Clojure
Great, thanks!
Reply all
Reply to author
Forward
0 new messages