Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

License

NotificationsYou must be signed in to change notification settings

gildor478/ounit

Repository files navigation

GitHub Actions

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

Installation

The recommended way to install ounit is via theopam package manager:

$ opam install ounit2

Documentation

API documentation isavailable online.

Examples

Transition to ounit2

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.


[8]ページ先頭

©2009-2025 Movatter.jp