Module TestBuilder


module TestBuilder: sig .. end
A module for building test functions

If you want to build customized testing functions which can easily comingle with TestSimple's testing functions you need to use this module to build those functions with.

The best documentation for this is probably the source code for TestSimple itself.


val create_test_plan : ?count:int -> unit -> unit
This initalizes the test plan.
val build_test_case : ?todo:string -> ?diag:TAPDocument.diagnostic -> bool -> string -> unit
This builds a simple tests case.
val build_diagnostic : string -> unit
Utility function to handle building diagnostic nodes
val build_extended_diagnostic_message : bool -> 'a -> 'a -> string -> TAPDocument.diagnostic option
This builds an extended diagnostic message, showing the values gotten and the values that were expected.

This function uses ExtLib.dump to display the got and expected values.

val build_diagnostic_message : bool -> string -> TAPDocument.diagnostic option
this builds a simpler diagnostic message

Testing the Test framework


module Tester: sig .. end
This module can be used to test the ouput of tests which are built with TestBuilder.