Description
I'm loving tUnit so far, and would love to start integrating generative testing into some of my projects. An example project for this sort of thing is FsCheck. In order to do this we'd need some way to run tests and refine the inputs of a test based on what tests fail.
For those who haven't seen generative testing before, it mostly involves probing a test, if a test takes int
it would be run first with 0
then 1
, then 100
, then -100
, etc. until it fails. If the test fails on 50
and not 1
the testing suite then tries 25
then performs a binary search of the input space until a single failing result is found. The report for the failure is then "Test failed with input 42
"
I'm not sure how best to integrate this sort of test process. But I'd love to kick off the converstion.