package ounit2

  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. ocaml-yescrypt
  99. ocamlmod >= "0.1.1"
  100. ocolor >= "1.3.1"
  101. orsetto >= "1.0.3"
  102. otoml >= "0.9.2"
  103. otp
  104. ounit >= "2.2.7"
  105. ounit2-lwt >= "2.2.7"
  106. packstream
  107. parsite
  108. pcrc
  109. pcre >= "8.0.3"
  110. pcre2 >= "7.5.2"
  111. pgn_to_tex
  112. plato
  113. posix-getopt >= "2.0.0"
  114. ppx_camlrack
  115. ppx_const
  116. ppx_deriving >= "5.2"
  117. ppx_deriving_hash >= "0.1.4"
  118. ppx_deriving_melange
  119. ppx_deriving_protobuf
  120. ppx_deriving_yojson >= "3.7.0"
  121. ppx_getenv
  122. ppx_make
  123. ppx_mikmatch
  124. ppx_pyformat
  125. ppx_viewpattern
  126. qcheck-ounit >= "0.17"
  127. qiskit >= "2.0.1"
  128. qmp >= "0.19.0"
  129. qtest >= "2.11.1"
  130. re >= "1.12.0"
  131. redis >= "0.7"
  132. redis-lwt >= "0.5"
  133. redis-sync >= "0.5"
  134. rtree
  135. sd_logic
  136. sha >= "1.15.1"
  137. shared-block-ring
  138. shellwords
  139. sifun
  140. smtml >= "0.7.0" & < "0.30.0"
  141. starpath
  142. synopsis >= "1.1"
  143. tiny_httpd >= "0.8" & < "0.13"
  144. tls >= "0.14.1"
  145. toml >= "7.0.0"
  146. toml_cconv >= "7.0.0"
  147. tuntap
  148. unix-type-representations >= "0.1.3"
  149. uri >= "4.4.0"
  150. uri-re >= "4.4.0"
  151. uri-sexp >= "4.4.0"
  152. vchan >= "6.0.2"
  153. vec >= "0.2.0"
  154. vhd-format-lwt = "0.12.3"
  155. vlq >= "0.2.1"
  156. xdg-basedir >= "0.0.5"
  157. xenstore
  158. xenstore_transport >= "1.5.0"
  159. zarr
  160. zarr-eio
  161. zarr-lwt
  162. zarr-sync
  163. zmq >= "5.1.1"
  164. zmq-async >= "5.1.1"
  165. zmq-eio
  166. zmq-lwt >= "5.1.1"

Conflicts

None