package ounit2-lwt

  1. Overview
  2. Docs
OUnit testing framework (Lwt)

Install

Dune Dependency

Authors

Maintainers

Sources

ounit-v2.2.2.tbz
sha256=53439ae8958d4016afd596d7afbe0b613163533761253e8c781d7afe3d6b9dc0
sha512=24c56141c9063c81e9cd193f9b927f01766e344bd8fbddd702fe1a2765e1bf626082d7b0b29704e1c86ce6eb67493d1f70c0a454e39c6e79209820d0e60db9bd

Description

This library contains helper functions for building Lwt tests using OUnit.

Published: 27 Jan 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.

Installation

The recommended way to install ounit is via the opam package manager:

$ opam install ounit

Documentation

API documentation is available online.

Examples

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.

Dependencies (4)

  1. ounit2 = version
  2. lwt
  3. dune >= "1.11.0"
  4. ocaml >= "4.02.3"

Dev Dependencies

None

Used by (2)

  1. ounit-lwt = "2.2.2"
  2. tar-mirage >= "2.0.0" & < "2.4.0"

Conflicts

None

OCaml

Innovation. Community. Security.