<< Back to previous view

[TCHECK-118] Pass shrunk input on to clojure.test when using defspec Created: 23/Aug/16  Updated: 23/Aug/16

Status: Open
Project: test.check
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Enhancement Priority: Major
Reporter: Sebastian Poeplau Assignee: Gary Fredericks
Resolution: Unresolved Votes: 0
Labels: release-0.10.0


 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.






Generated at Fri Aug 26 02:01:01 CDT 2016 using JIRA 4.4#649-r158309.