Fork me on GitHub
#test-check
<
2016-11-08
>
mattly20:11:38

is there any way to tell test.check to give up and just show me the smallest failing result so far after a certain number of iterations?

mattly20:11:57

I've got one failure that I'm having a really hard time tracking down, but it'll run for 100k iterations without settling

gfredericks21:11:18

@mattly there are a couple tickets surrounding that

gfredericks21:11:10

@mattly there is also a callback function you can register on the master branch, that would let you "listen" for things as it's shrinking

gfredericks21:11:14

there's a ticket for a max-shrink-time option, and for capturing C-c interruptions and returning the smallest value so far

gfredericks21:11:34

I think the latter one is hairy though so I don't know if it will get implemented :/

gfredericks21:11:35

C-c would probably be the most useful, so if it turns out to be straightforward I would love to add it

gfredericks21:11:22

if it's hairy it's probably because of varying details in different repls vs. unix signals when running test processes and that sort of thing