Pass shrunk input on to clojure.test when using defspec

Description

test.check provides integration with clojure.test through the defspec macro. It reports failing test inputs to clojure.test by calling clojure.test/report with an event of type :clojure.test.check.clojure-test/shrinking. However, the shrunk input is not reported.

CIDER has recently gained the ability to display generated test input. For tests defined through defspec it currently displays the failing inputs, but it would be very nice to have it receive the shrunk input as well (which currently only works for test.chuck's checking). I would therefore suggest to have clojure.test.check.clojure-test/default-reporter-fn forward the event of type :shrunk that quick-check generates; CIDER is ready to process it, and I assume others will just ignore it.

Environment

None

Activity

Show:
gfredericks
September 3, 2016, 6:07 PM

This is fixed on master

Completed

Assignee

gfredericks

Reporter

import

Labels

Approval

None

Patch

None

Priority

Major