QCheck2.TestResultSourceResult of running a test
type 'a counter_ex = {instance : 'a;The counter-example
*)shrink_steps : int;How many shrinking steps for this counter-example
*)msg_l : string list;}A counter-example when a test fails.
type 'a state = | SuccessIf the test passed.
*)| Failed of {instances : 'a counter_ex list;Failed instance(s)
*)}If the test failed "normally", i.e. a test returned false.
| Failed_other of {}If the test failed for an unusual reason:
Test.if_assumptions_fail was set to `Fatal| Error of {instance : 'a counter_ex;Instance that triggered the exception in the test
*)exn : exn;The raised exception
*)backtrace : string;A best-effort backtrace of the exception
*)}If the test failed "exceptionally" (an exception was raised by the test).
*)Result state.
changed in 0.10 (move to inline records, add Fail_other)
get_collect t returns the repartition of generated values.
get_stats t returns the statistics captured by the test.
get_warnings t returns the list of warnings emitted during the test.