package ounit2

  1. Overview
  2. Docs
OUnit testing framework

Install

Dune Dependency

Authors

Maintainers

Sources

ounit-2.2.5.tbz
sha256=1b0d182b5eae536f37605f379b8e42a35d587471b917cee3d033bea20f7cbe55
sha512=2e519ff032843298b4dd716d7b3460d4720fe59ba1535a32fc9ef58eae4fcc80d3ec59ddb7b22653f064ef8ae02d19ae1afd2ed7de16c34d396ea180a6e33cb1

doc/ounit2.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 * (OUnitPlugin.name * chooser)) list ref
Sourceval register : OUnitPlugin.name -> int -> chooser -> unit
Sourceval allskip : t -> choice
Sourceval failfirst : t -> choice
OCaml

Innovation. Community. Security.