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"
PublishedDec 19, 2013
Source [http] https://github.com/mirage/alcotest/archive/0.2.0.tar.gz
d947d3a49fd36a2588b1a71c703bce26
StatisticsInstalled 9 times last month.
Edithttps://github.com/ocaml/opam-repository/tree/master/packages/alcotest/alcotest.0.2.0/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.