alcotest

AuthorThomas Gazagnaire
LicenseISC
Homepagehttps://github.com/mirage/alcotest/
Issue Trackerhttps://github.com/mirage/alcotest/issues/
Maintainerthomas@gazagnaire.org
Dependencies
&cmdliner
ocamlbuild
ocamlfind
ounit>= 1.1.2
re
Availableocaml-version >= "4.00.1" & ocaml-version < "4.06.0"
PublishedJun 22, 2015
Source [http] https://github.com/mirage/alcotest//archive/0.3.3.tar.gz
18e0363a5dee713c315af648c7cfde37
StatisticsInstalled 7 times last month.
Edithttps://github.com/ocaml/opam-repository/tree/master/packages/alcotest/alcotest.0.3.3/opam

Alcotest is a lightweight and colourful test framework, based on OUnit.

Alcotest exposes a much more restricted interface than OUnit, as you can only pass to Alcotest.run a tree of callbacks of depth 2, and the callbacks are unit -> unit functions that you can build using the usual OUnit.assert_* functions or any other means (including Quickcheck-like test generators).

This limitation enables Alcotest to provide a quiet and colorful output where only faulty runs are fully displayed at the end of the run (with the full logs ready to inspect), with a simple (yet expressive) query language to select the tests to run.