package ounit2

All checked builds pass
  1. Overview
  2. Docs
OUnit testing framework

Install

dune-project
 Dependency

Authors

Maintainers

Sources

ounit-2.2.7.tbz
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

GitHub Actions

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

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)

  1. stdlib-shims
  2. seq
  3. base-unix
  4. ocaml >= "4.04.0"
  5. dune >= "3.0"

Dev Dependencies (1)

  1. odoc with-doc

  1. 0install >= "2.17"
  2. 0install-gtk >= "2.17"
  3. 0install-solver
  4. abella >= "2.0.8"
  5. adelfa
  6. arg-complete
  7. atproto
  8. beluga >= "1.1"
  9. binsec
  10. bisect_ppx >= "2.0.0" & < "2.6.0"
  11. bitgenerators
  12. caldav >= "0.2.3"
  13. camlp5 = "8.00~alpha06" | >= "8.02.01"
  14. camlrack
  15. capnp >= "3.6.0"
  16. charset
  17. claudius
  18. cll
  19. clp_operations
  20. cobs
  21. cohttp-async >= "6.0.0"
  22. cohttp-curl-async >= "6.1.0"
  23. cohttp-curl-lwt
  24. cohttp-lwt-unix >= "6.0.0"
  25. colibri2
  26. conjury >= "2.0.1"
  27. containers = "3.8"
  28. coq-core < "8.19.0"
  29. crc >= "2.2.0"
  30. ctypes >= "0.21.1"
  31. ctypes-foreign >= "0.21.1"
  32. cudf >= "0.10"
  33. debian-formats >= "0.1.2"
  34. decoders-bencode >= "1.0.0"
  35. decoders-cbor >= "1.0.0"
  36. decoders-ezjsonm >= "1.0.0"
  37. decoders-jsonaf
  38. decoders-jsonm >= "1.0.0"
  39. decoders-msgpck >= "1.0.0"
  40. decoders-sexplib >= "1.0.0"
  41. decoders-yojson >= "1.0.0"
  42. devkit >= "1.20210120"
  43. dkml-c-probe >= "3.0.0"
  44. dtoa >= "0.3.3"
  45. dual
  46. edn >= "0.2.0"
  47. epictetus
  48. errpy
  49. expect >= "0.1.0"
  50. extunix >= "0.3.1"
  51. fileutils >= "0.6.4"
  52. fuse3
  53. GenArrayIter
  54. gapi-ocaml
  55. gen >= "1.0"
  56. gettext >= "0.5.0"
  57. gettext-camomile >= "0.5.0"
  58. gettext-stub >= "0.5.0"
  59. giflib
  60. goblint
  61. google-drive-ocamlfuse
  62. inotify >= "2.4"
  63. inotify-eio
  64. iostream
  65. iostream-camlzip
  66. ipaddr >= "5.6.0"
  67. ipaddr-sexp
  68. irky
  69. iter >= "1.6"
  70. jsonschema2atd
  71. junit_ounit >= "2.1.0"
  72. jupyter >= "2.7.6"
  73. jws
  74. kind2
  75. lambdasoup >= "0.7.2"
  76. letsencrypt >= "1.0.0"
  77. leveldb
  78. luna
  79. lz4 >= "1.2.0"
  80. macaddr >= "5.6.0"
  81. macaddr-sexp
  82. markdown
  83. markdown_monolith
  84. markup >= "1.0.0-1"
  85. mirage-block-ccm
  86. mirage-block-unix >= "2.14.2"
  87. mirage-bootvar
  88. mirage-crypto >= "0.10.7"
  89. mirage-crypto-ec >= "1.1.0"
  90. mirage-crypto-pk
  91. mirage-crypto-rng >= "0.10.7"
  92. mlbdd >= "0.7.2"
  93. mock-ounit >= "1.0.0"
  94. mustache = "3.2.0"
  95. mustache-cli
  96. mutaml
  97. mysql_protocol
  98. nanofuzz_runtime
  99. ocaml-yescrypt
  100. ocamlmod >= "0.1.1"
  101. ocolor >= "1.3.1"
  102. orsetto >= "1.0.3"
  103. otoml >= "0.9.2"
  104. otp
  105. ounit >= "2.2.7"
  106. ounit2-lwt >= "2.2.7"
  107. packstream
  108. parsite
  109. pcrc
  110. pcre >= "8.0.3"
  111. pcre2 >= "7.5.2"
  112. pgn_to_tex
  113. plato
  114. posix-getopt >= "2.0.0"
  115. ppx_camlrack
  116. ppx_const
  117. ppx_deriving >= "5.2"
  118. ppx_deriving_hash >= "0.1.4"
  119. ppx_deriving_melange
  120. ppx_deriving_protobuf
  121. ppx_deriving_yojson >= "3.7.0"
  122. ppx_getenv
  123. ppx_make
  124. ppx_mikmatch
  125. ppx_pyformat
  126. ppx_viewpattern
  127. qcheck-ounit >= "0.17"
  128. qiskit >= "2.0.1"
  129. qmp >= "0.19.0"
  130. qtest >= "2.11.1"
  131. re >= "1.12.0"
  132. redis >= "0.7"
  133. redis-lwt >= "0.5"
  134. redis-sync >= "0.5"
  135. rtree
  136. sd_logic
  137. sha >= "1.15.1"
  138. shared-block-ring
  139. shellwords
  140. sifun
  141. smtml >= "0.7.0" & < "0.30.0"
  142. starpath
  143. synopsis >= "1.1"
  144. tiny_httpd >= "0.8" & < "0.13"
  145. tls >= "0.14.1"
  146. toml >= "7.0.0"
  147. toml_cconv >= "7.0.0"
  148. tuntap
  149. unix-type-representations >= "0.1.3"
  150. uri >= "4.4.0"
  151. uri-re >= "4.4.0"
  152. uri-sexp >= "4.4.0"
  153. vchan >= "6.0.2"
  154. vec >= "0.2.0"
  155. vhd-format-lwt = "0.12.3"
  156. vlq >= "0.2.1"
  157. xdg-basedir >= "0.0.5"
  158. xenstore
  159. xenstore_transport >= "1.5.0"
  160. zarr
  161. zarr-eio
  162. zarr-lwt
  163. zarr-sync
  164. zmq >= "5.1.1"
  165. zmq-async >= "5.1.1"
  166. zmq-eio
  167. 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