package ounit2
All checked builds passInstall
dune-project
Dependency
Authors
Maintainers
Sources
sha256=90f6e63bd1240a51d8b9b2f722059bd79ce00b5276bdd6238b8f5c613c0e7388
sha512=53463e5b1b5a40f424e19f5f6a86338a544079600d1fd121ffc1a6fcaa239630194018faf91ccf360ba40b1b2a8b01cf491935e014c68d2947f6e027a2f0a0f9
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.
Added to opam-repository:
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 ounit2Documentation
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 (5)
- stdlib-shims
- seq
- base-unix
-
ocaml
>= "4.04.0" -
dune
>= "3.0"
Dev Dependencies (1)
-
odoc
with-doc
-
0install
>= "2.17" -
0install-gtk
>= "2.17" - 0install-solver
-
abella
>= "2.0.8" - adelfa
- arg-complete
- atproto
-
beluga
>= "1.1" - binsec
-
bisect_ppx
>= "2.0.0" & < "2.6.0" - bitgenerators
-
caldav
>= "0.2.3" -
camlp5
= "8.00~alpha06" | >= "8.02.01" - camlrack
-
capnp
>= "3.6.0" - charset
- claudius
- cll
- clp_operations
- cobs
-
cohttp-async
>= "6.0.0" -
cohttp-curl-async
>= "6.1.0" - cohttp-curl-lwt
-
cohttp-lwt-unix
>= "6.0.0" - 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" -
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
-
expect
>= "0.1.0" -
extunix
>= "0.3.1" -
fileutils
>= "0.6.4" - fuse3
- GenArrayIter
- gapi-ocaml
-
gen
>= "1.0" -
gettext
>= "0.5.0" -
gettext-camomile
>= "0.5.0" -
gettext-stub
>= "0.5.0" - giflib
- goblint
- google-drive-ocamlfuse
-
inotify
>= "2.4" - inotify-eio
- iostream
- iostream-camlzip
-
ipaddr
>= "5.6.0" - ipaddr-sexp
- irky
-
iter
>= "1.6" - jsonschema2atd
-
junit_ounit
>= "2.1.0" -
jupyter
>= "2.7.6" - jws
- kind2
-
lambdasoup
>= "0.7.2" -
letsencrypt
>= "1.0.0" - leveldb
- luna
-
lz4
>= "1.2.0" -
macaddr
>= "5.6.0" - macaddr-sexp
- markdown
- markdown_monolith
-
markup
>= "1.0.0-1" - mirage-block-ccm
-
mirage-block-unix
>= "2.14.2" - mirage-bootvar
-
mirage-crypto
>= "0.10.7" -
mirage-crypto-ec
>= "1.1.0" - mirage-crypto-pk
-
mirage-crypto-rng
>= "0.10.7" -
mlbdd
>= "0.7.2" -
mock-ounit
>= "1.0.0" -
mustache
= "3.2.0" - mustache-cli
- mutaml
- mysql_protocol
- nanofuzz_runtime
- ocaml-yescrypt
-
ocamlmod
>= "0.1.1" -
ocolor
>= "1.3.1" -
orsetto
>= "1.0.3" -
otoml
>= "0.9.2" - otp
-
ounit
>= "2.2.7" -
ounit2-lwt
>= "2.2.7" - packstream
- parsite
- pcrc
-
pcre
>= "8.0.3" -
pcre2
>= "7.5.2" - pgn_to_tex
- plato
-
posix-getopt
>= "2.0.0" - ppx_camlrack
- ppx_const
-
ppx_deriving
>= "5.2" -
ppx_deriving_hash
>= "0.1.4" - ppx_deriving_melange
- ppx_deriving_protobuf
-
ppx_deriving_yojson
>= "3.7.0" - ppx_getenv
- ppx_make
- ppx_mikmatch
- ppx_pyformat
- ppx_viewpattern
-
qcheck-ounit
>= "0.17" -
qiskit
>= "2.0.1" -
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
- shellwords
- sifun
-
smtml
>= "0.7.0" & < "0.30.0" - starpath
-
synopsis
>= "1.1" -
tiny_httpd
>= "0.8" & < "0.13" -
tls
>= "0.14.1" -
toml
>= "7.0.0" -
toml_cconv
>= "7.0.0" - tuntap
-
unix-type-representations
>= "0.1.3" -
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" -
xdg-basedir
>= "0.0.5" - xenstore
-
xenstore_transport
>= "1.5.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
Build status
Results of building ounit2 with each compiler on check.ci.ocaml.org, run of against opam-repository 7cdc698. All results for this package.
Each result links to its build log. To keep crawlers from overloading the site, build logs require a GitHub sign-in (see ocurrent/opam-health-check). On your first log, GitHub asks you to “Authorize opam-health-check”, the OCurrent app that runs these checks; it sees only your public profile, not your repositories. The sign-in lasts 30 days.
| Version | OCaml 4.11 | OCaml 4.14 | OCaml 5.2 | OCaml 5.4 | OCaml 5.5 |
|---|---|---|---|---|---|
| 2.2.7 (this version) | good | good | good | good | good |
- good Package successfully built
- partial One of the dependencies failed to build
- bad Package failed to build
- n/a Package is not available in this environment
- internal Internal failure