Idea from QC & the paper: classification of input to properties #34
Description
The original QC paper: https://www.cs.tufts.edu/~nr/cs257/archive/john-hughes/quick.pdf
Under 2.4. Monitoring test data, the paper talks about classification of trivial inputs which are then shown to the user. These mechanisms are exposed here today: https://hackage.haskell.org/package/QuickCheck-2.11.3/docs/Test-QuickCheck.html#g:22
I think the most useful function here is classify
.
I believe these primitives can be offered either at the strategy level by calling methods of TestRunner
or via the success/failure mechanism (we can overload the meaning of success such that it can be annotated with classification..)
However, cargo test
does not currently expose extra info very nicely on success, so at best I think we can print the out the classification with a println!(..)
.