QCheck_ounitval to_ounit_test :
?verbose:bool ->
?long:bool ->
?rand:Stdlib.Random.State.t ->
QCheck2.Test.t ->
OUnit.testto_ounit_test ~rand t wraps t into a OUnit test
val to_ounit_test_cell :
?verbose:bool ->
?long:bool ->
?rand:Stdlib.Random.State.t ->
_ QCheck2.Test.cell ->
OUnit.testSame as to_ounit_test but with a polymorphic test cell
val (>:::) : string -> QCheck2.Test.t list -> OUnit.testSame as OUnit.(>:::) but with a list of QCheck2 tests
val to_ounit2_test :
?rand:Stdlib.Random.State.t ->
QCheck2.Test.t ->
OUnit2.testto_ounit2_test ?rand t wraps t into a OUnit2 test
val to_ounit2_test_list :
?rand:Stdlib.Random.State.t ->
QCheck2.Test.t list ->
OUnit2.test listto_ounit2_test_list ?rand t like to_ounit2_test but for a list of tests
QCheck provides some custom runners for OUnit tests.
Note that OUnit.run_test_tt or OUnit.run_test_tt_main can be used as well, in particular when QCheck tests are mixed with normal unit tests.
For OUnit2 you can use OUnit2.run_test_tt_main.
run test runs the test, and returns an error code that is 0 if all tests passed, 1 otherwise. This is the default runner used by the comment-to-test generator.