package ounit2

  1. Overview
  2. Docs
OUnit testing framework

Install

dune-project
 Dependency

Authors

Maintainers

Sources

ounit-2.2.6.tbz
sha256=0690fb1e0e90a18eed5c3566b3cc1825d98b0e8c7d51bb6b846c95c45a615913
sha512=d7cb36a1fe245d02afab606cd1ee755a178ee4cb18fbbfec1df32baa88fa90ef6c9a50d9fd5bde46c7fd9c481f2debe4bafac75c4e3bdfbdb63fc18b0ccce3cc

doc/ounit2.advanced/OUnitChooser/index.html

Module OUnitChooser

Heuristic to pick a test to run.

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

Most simple heuristic, just pick the first test.

module Plugin : sig ... end
include module type of struct include Plugin end
val all : (int * (OUnitPlugin.name * chooser)) list ref
val register : OUnitPlugin.name -> int -> chooser -> unit
val of_name : OUnitPlugin.name -> chooser
val allskip : t -> choice
val failfirst : t -> choice