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/OUnitChooser/index.html

Module OUnitChooserSource

Heuristic to pick a test to run.

  • author Sylvain Le Gall
Sourcetype t = {
  1. tests_planned : OUnitTest.path list;
  2. tests_running : OUnitTest.path list;
  3. tests_passed : OUnitTest.result_list;
  4. cache : OUnitCache.cache;
}
Sourcetype choice =
  1. | ChooseToSkip of OUnitTest.path
  2. | ChooseToPostpone
  3. | Choose of OUnitTest.path
  4. | NoChoice
Sourceval string_of_choice : choice -> string
Sourcetype chooser = t -> choice
Sourceval simple : t -> choice

Most simple heuristic, just pick the first test.

Sourcemodule Plugin : sig ... end
include module type of struct include Plugin end
Sourceval all : (int * (string * chooser)) list ref
Sourceval register : string -> int -> chooser -> unit
Sourceval of_name : string -> chooser
Sourceval choice : (int, unit -> unit) Hashtbl.t -> string * chooser
Sourceval preset : (string * string) list -> (string * string) list
Sourceval allskip : t -> choice
Sourceval failfirst : t -> choice
OCaml

Innovation. Community. Security.