test-check

2019-04-30T00:15:39.012200Z

yeah there's a lot of stuff there; the main reason it's confusing is because I was trying to add more useful and easy-to-use information without breaking stuff relying on the old keys

2019-04-30T00:16:55.013500Z

:result is the worst part, since it has the truthy-or-exception thing going on; that's why I added the :pass? key, so you can tell with a straightforward check whether the test passed or not :result-data is customizable, if you write a property that returns something that satsifies the clojure.test.check.results/Result protocol

2019-04-30T00:17:29.014100Z

the only specific use of it that's baked in is when a normal property throws an exception, the exception is added as a key in the result-data

2019-04-30T00:17:48.014500Z

which might currently have the unfortunate side effect of causing exceptions to be printed twice 😞

2019-04-30T00:18:43.014800Z

@kenny ^^

2019-04-30T00:20:21.015200Z

I can see both parts are fairly undocumented 😕

2019-04-30T00:20:34.015600Z

I tried to spec things at some point I think; maybe that'd be a good way to start

2019-04-30T00:32:32.016400Z

Except they probably haven't added docstrings to specs yet have they

alexmiller 2019-04-30T00:35:44.016700Z

not yet