package ounit

  1. Overview
  2. Docs
Unit testing framework loosely based on HUnit. It is similar to JUnit, and other XUnit testing frameworks

Install

Dune Dependency

Authors

Maintainers

Sources

ounit-2.0.8.tar.gz
sha256=2e30fe79648e928b5a9d20f83d5a1a805826c7193e821464a9e4752661ba2e0e
md5=bd12d66c9dbd95a50570bb686b0f10f5

doc/oUnit.advanced/OUnitConf/index.html

Module OUnitConfSource

Sourceexception Parse_error of string
Sourcetype metadata = {
  1. help : string;
  2. get_print : conf -> string;
  3. parse_set : string -> conf -> unit;
  4. cli : conf -> (string * Arg.spec * string) list;
}
Sourceval metaconf : (string, metadata) Hashtbl.t
Sourceval check_variable_name : string -> unit
Sourceval cli_name : string -> string
Sourceval subst : conf -> (string * string) list -> string -> string
Sourceval make : name:string -> parse:(string -> 'a) -> print:('a -> string) -> default:'a -> help:string -> fcli:('a -> ('a -> unit) -> (string * Arg.spec * string) list) -> unit -> (int, unit -> unit) Hashtbl.t -> 'a
Sourceval make_string : string -> string -> string -> (int, unit -> unit) Hashtbl.t -> string
Sourceval make_string_subst : string -> string -> string -> ?extra_subst:(string * string) list -> conf -> string
Sourceval make_string_opt : string -> string option -> string -> (int, unit -> unit) Hashtbl.t -> string option
Sourceval make_string_subst_opt : string -> string option -> string -> ?extra_subst:(string * string) list -> (int, unit -> unit) Hashtbl.t -> string option
Sourceval make_int : string -> int -> string -> (int, unit -> unit) Hashtbl.t -> int
Sourceval make_float : string -> float -> string -> (int, unit -> unit) Hashtbl.t -> float
Sourceval make_bool : string -> bool -> string -> (int, unit -> unit) Hashtbl.t -> bool
Sourceval make_enum : string -> (unit -> (string * 'a) list) -> string -> string -> (int, unit -> unit) Hashtbl.t -> string * 'a
Sourceval make_exec : string -> (int, unit -> unit) Hashtbl.t -> string
Sourceval set : origin:string -> conf -> string -> string -> unit
Sourceval file_parse : conf -> string -> unit
Sourceval env_parse : conf -> unit
Sourceval cli_parse : ?argv:string array -> (Arg.key * Arg.spec * Arg.doc) list -> conf -> unit
Sourceval default : ?preset:(string * string) list -> unit -> (int, unit -> unit) Hashtbl.t
Sourceval load : ?preset:(string * string) list -> ?argv:string array -> (Arg.key * Arg.spec * Arg.doc) list -> (int, unit -> unit) Hashtbl.t

Load test options from file, environment and command line (in this order). Not that extra_specs is here for historical reason, better use make to create command line options.

Sourceval dump : conf -> (string * string) list
OCaml

Innovation. Community. Security.