- Notifications
You must be signed in to change notification settings - Fork18
License
gildor478/ounit
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
OUnit is a unit test framework for OCaml. It allows one to easily createunit-tests for OCaml code. It is loosely based onHUnit, a unit testingframework for Haskell. It is similar toJUnit, and other XUnit testingframeworks.
Features:
- colored output
- JUnit report generation
- HTML report generation
The recommended way to install ounit is via theopam package manager:
$ opam install ounit2
API documentation isavailable online.
- From the examples/ directory of ounit:
- External projects:
In the past OUnit used the ocamlfind package name "oUnit". It is uncommon touse uppercase letters in ocamlfind package name. It caused some problems duringthe transition to "dune". It was also not the same name as the OPAM package. Asof version 2.2, the opam package ounit and the ocamlfind package oUnit arerenamed 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.