package ounit2-lwt
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=db781e8c3cddb2a9be6e0c43b1cd24217d4ce19a4e0c7efe86fd67aca8895e39
sha512=7448a52ffd05f4f05eb5410ad696a8eeb0d2f02f1a104ad91f6490b5b9b901e40a315222ef43612522d9a177a68d1798b401255aadc66f1b45d75abd1744ea37
README.md.html
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.
Installation
The recommended way to install ounit is via the opam package manager:
$ opam install ounit
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.