Testo(caml)

Testo is an industry-grade test framework for OCaml. It is suitable for unit-testing OCaml code and for end-to-end testing command-line executables. Testo is an open-source project maintained by the OCaml community, with support from Semgrep.

Quick Start

$ opam update
$ opam install testo
$ git clone https://github.com/semgrep/testo-template.git
$ cd testo-template
$ dune build
$ ./test

Copy the template and adapt it as needed.

Documentation

screenshot showing the tail of a successful test run

A successful test run

screenshot showing the output of './test status'

The output of ./test status -a

screenshot showing a test failure

A test failure showing a CRLF issue