OUnitTestSourceSee OUnit.mli.
See OUnit2.mli.
type result = | RSuccess| RFailure of string * OUnitLogger.position option * backtrace| RError of string * backtrace| RSkip of string| RTodo of string| RTimeout of test_lengthSee OUnit.mli.
type ctxt = {conf : OUnitConf.conf;logger : logger;path : path;test_logger : result OUnitLogger.Test.t;mutable tear_down : (ctxt -> unit) list;tear_down_mutex : OUnitShared.Mutex.t;non_fatal : result_full list ref;non_fatal_mutex : OUnitShared.Mutex.t;initial_environment : string array;}type test = | TestCase of test_length * test_fun| TestList of test list| TestLabel of string * testIsolate a function inside a context. All the added tear down will run before returning.
val with_ctxt :
OUnitConf.conf ->
logger ->
OUnitShared.shared ->
result_full list ref ->
path ->
(ctxt -> 'a) ->
'aCreate a context and run the function.
Transform an exception in a result.
Isolate a function inside a context, just as !section_ctxt but don't propagate a failure, register it for later.