Hi all!
I am interested in using the "generators are parsers for random sequences" property to do some machine-learning experiments. For instance, I'm curious if it can infer some strategies used in test case reduction.
For this, I am trying to expose the random number sequence used by the generators directly for the machine learning algorithm to optimise. When a test is run, I'd like to recover the sequence, as well as the tree structure that arose from using the input sequence.
More specifically, for a Strategy that generates values of type T, I'd like to obtain from it a function of type:
- RandomSequence -> (T, SequenceTree)
where SequenceTree has the call-stack structure attached to it, based on what parts of the sequence were drawn by which generators.
I'm wondering what are the ways to obtain something like this. I am quite new to Hypothesis itself, so apologies if this is a basic question! :)
Best regards,
Jacob