package ounit2-lwt
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=e280a64aa7df64bd7335c9ed68a70d6ee168b39ae8bbfb6daedd2f4a04844ad9
sha512=dff04859d263e5f80a1606156d07493d0320a2756d0a7f134c63c53078550c7b056587486922bc66a288413af30c59a7e47157636502c6dd10626cf75587f981
Description
This library contains helper functions for building Lwt tests using OUnit.
Published: 12 Jul 2020
README
OUnit - xUnit testing framework for OCaml
OUnit is a unit test framework for OCaml. It allows one to easily create unit-tests for OCaml code. It is loosely based on HUnit, a unit testing framework for Haskell. It is similar to JUnit, and other XUnit testing frameworks.
Features:
colored output
JUnit report generation
HTML report generation
Installation
The recommended way to install ounit is via the opam package manager:
$ opam install ounit2
Documentation
API documentation is available online.
Examples
From the examples/ directory of ounit:
External projects:
Transition to ounit2
In the past OUnit used the ocamlfind package name "oUnit". It is uncommon to use uppercase letters in ocamlfind package name. It caused some problems during the transition to "dune". It was also not the same name as the OPAM package. As of version 2.2, the opam package ounit and the ocamlfind package oUnit are renamed to ounit2 (the same for both the ocamlfind and opam packages).
To do the transition for your own tests:
in OPAM, the library should now depends on "ounit2" or "ounit2-lwt"
in dune files/OASIS/Makefile/pkg.ml replace "oUnit" by "ounit2" and "ounit-lwt" to "ounit2-lwt".
We will keep OPAM packages "ounit"/"ounit-lwt" for the transition.