package ounit2
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=0690fb1e0e90a18eed5c3566b3cc1825d98b0e8c7d51bb6b846c95c45a615913
sha512=d7cb36a1fe245d02afab606cd1ee755a178ee4cb18fbbfec1df32baa88fa90ef6c9a50d9fd5bde46c7fd9c481f2debe4bafac75c4e3bdfbdb63fc18b0ccce3cc
Description
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.
Published: 10 Feb 2022
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.
Dependencies (6)
- stdlib-shims
- seq
- base-unix
- base-bytes
-
dune
>= "1.11.0"
-
ocaml
>= "4.04.0"
Dev Dependencies
None
-
0install
>= "2.17"
-
0install-gtk
>= "2.17"
- 0install-solver
-
abella
>= "2.0.8"
- adelfa
- arg-complete
-
beluga
>= "1.1"
-
binsec
>= "0.4.0"
-
bisect_ppx
>= "2.0.0" & < "2.6.0"
- bitgenerators
-
caldav
>= "0.2.3"
-
camlp5
>= "8.00~alpha04" & < "8.00" | >= "8.00.05"
- camlrack
-
capnp
>= "3.6.0"
- charset
- cll
- clp_operations
- cobs
- colibri2
-
conjury
>= "2.0.1"
-
containers
= "3.8"
-
coq-core
< "8.19.0"
-
crc
>= "2.2.0"
-
ctypes
>= "0.21.1"
-
ctypes-foreign
>= "0.21.1"
-
cudf
>= "0.10"
- deadlock
-
debian-formats
>= "0.1.2"
-
decoders-bencode
>= "1.0.0"
-
decoders-cbor
>= "1.0.0"
-
decoders-ezjsonm
>= "1.0.0"
- decoders-jsonaf
-
decoders-jsonm
>= "1.0.0"
-
decoders-msgpck
>= "1.0.0"
-
decoders-sexplib
>= "1.0.0"
-
decoders-yojson
>= "1.0.0"
-
devkit
>= "1.20210120"
-
dkml-c-probe
>= "3.0.0"
-
dtoa
>= "0.3.3"
- dual
-
edn
>= "0.2.0"
- epictetus
- errpy
-
extunix
>= "0.3.1"
-
fileutils
>= "0.6.4"
-
gapi-ocaml
>= "0.4.3"
-
gen
>= "1.0"
-
goblint
>= "1.1.1"
-
google-drive-ocamlfuse
>= "0.7.29"
-
inotify
>= "2.4"
- inotify-eio
- iostream
- iostream-camlzip
-
ipaddr
>= "5.3.1"
-
ipaddr-sexp
>= "5.3.1"
-
iter
>= "1.6"
- jsonschema2atd
-
jupyter
>= "2.7.6"
- kind2
-
lambdasoup
>= "0.7.2"
-
letsencrypt
>= "1.0.0"
-
leveldb
>= "1.3.0"
-
lz4
>= "1.2.0"
-
macaddr
>= "5.3.1"
-
macaddr-sexp
>= "5.3.1"
- markdown
-
markup
>= "1.0.0"
-
mirage-block-ccm
>= "1.1.0"
-
mirage-block-unix
>= "2.13.0"
- mirage-bootvar
-
mirage-crypto
>= "0.10.6"
-
mirage-crypto-ec
>= "1.0.0"
-
mirage-crypto-pk
>= "0.10.6"
-
mirage-crypto-rng
>= "0.10.6"
-
mlbdd
>= "0.7.2"
-
mock-ounit
>= "1.0.0"
-
mustache
= "3.2.0"
- mustache-cli
- mutaml
-
mysql_protocol
>= "3.0.1"
-
ocolor
>= "1.3.1"
-
orsetto
>= "1.0.3"
-
otoml
>= "0.9.2"
-
ounit
= "2.2.6"
-
ounit2-lwt
= "2.2.6"
- oxylc
-
pa_ppx
< "0.07"
- packstream
- parsite
-
pcre2
>= "7.5.2"
- plato
-
posix-getopt
>= "2.0.0"
- ppx_camlrack
-
ppx_const
>= "2.0"
-
ppx_deriving
>= "5.2"
-
ppx_deriving_protobuf
>= "3.0.0"
-
ppx_deriving_yojson
>= "3.7.0"
-
ppx_getenv
>= "2.0"
- ppx_make
- ppx_pyformat
- ppx_viewpattern
-
qcheck-ounit
>= "0.14"
-
qmp
>= "0.19.0"
-
qtest
>= "2.11.1"
-
re
>= "1.12.0"
-
redis
>= "0.7"
-
redis-lwt
>= "0.5"
-
redis-sync
>= "0.5"
- rtree
- sd_logic
-
sha
>= "1.15.1"
-
shared-block-ring
>= "3.0.0"
- sifun
- starpath
-
tar-mirage
>= "2.0.0" & < "2.4.0"
-
tiny_httpd
>= "0.8" & < "0.13"
-
tls
>= "0.13.0"
-
toml
>= "7.0.0"
-
toml_cconv
>= "7.0.0"
-
tuntap
>= "2.0.1"
-
uri
>= "4.4.0"
-
uri-re
>= "4.4.0"
-
uri-sexp
>= "4.4.0"
-
vchan
>= "6.0.2"
-
vec
>= "0.2.0"
-
vhd-format-lwt
>= "0.12.3"
-
vlq
>= "0.2.1"
-
xenstore
>= "2.2.0"
- zarr
- zarr-eio
- zarr-lwt
- zarr-sync
-
zmq
>= "5.1.1"
-
zmq-async
>= "5.1.1"
- zmq-eio
-
zmq-lwt
>= "5.1.1"
Conflicts
None