OUnitTest
type path = node list
See OUnit.mli.
type result =
| RSuccess
| RFailure of string * OUnitLogger.position option * backtrace
| RError of string * backtrace
| RSkip of string
| RTodo of string
| RTimeout of test_length
See OUnit.mli.
type result_full = path * result * OUnitLogger.position option
type result_list = result_full list
type log_event_t = (path, result) OUnitLogger.log_event_t
type logger = (path, result) OUnitLogger.logger
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 Stdlib.ref;
non_fatal_mutex : OUnitShared.Mutex.t;
initial_environment : string array;
}
type test_fun = ctxt -> unit
val delay_of_length : test_length -> float
val get_shard_id : ctxt -> string
Isolate 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 Stdlib.ref ->
path ->
(ctxt -> 'a) ->
'b
Create a context and run the function.
val result_full_of_exception :
ctxt ->
exn ->
path * result * OUnitLogger.position option
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.
val test_case_count : test -> int
val string_of_node : node -> string
module Path : sig ... end
module MapPath : sig ... end
val string_of_path : node list -> string
module SetTestPath : sig ... end
val test_filter : ?skip:bool -> SetTestPath.elt list -> test -> test option