← All repos

alcotest

A lightweight and colourful test framework

ocamlunit-testing
Browse cluster: OCaml Systems and Utilities
912commits
64contributors
8languages

Tech stack & purpose

Alcotest is a lightweight unit testing framework for OCaml that provides a simple interface for writing and running tests. The framework exposes a `TESTABLE` module type, a `check` function for asserting test predicates, and a `run` function for executing test callbacks. It generates quiet, colorful output where only failing tests are displayed in full, and includes a query language for selecting which tests to run. The project is maintained by the Mirage team and supports additional features like Lwt integration for asynchronous testing and command-line argument passing to customize test behavior.

Community & reference links

Languages

OCaml
77.6%
BitBake
18.1%
C
1.9%
Dune
1.4%
JavaScript
0.5%
Pawn
0.3%
Makefile
0.1%
Standard ML
0.0%

Contributors (top 30 of 64)