package webtest

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Types and functions for running unit tests.

type output = {
  1. log : string list;
    (*

    The logging produced while running the tests.

    *)
  2. results : Suite.result list;
    (*

    The results of running the test.

    *)
}

The output generated by running a test.

type summary = {
  1. report : string;
    (*

    A report summarising the test results.

    *)
  2. passed : bool;
    (*

    A flag indicating whether all the tests passed.

    *)
}

A summary of a test run, including all logs plus a flag indicating whether all the tests passed.

val run : Suite.t -> (output -> unit) -> unit

run suite callback runs suite, passes the output to callback.

val summarise : Suite.result list -> summary

summarise results converts a list of test results into a summary.

OCaml

Innovation. Community. Security.