package ounit2

  1. Overview
  2. Docs
OUnit testing framework

Install

Dune 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.

Published: 24 Mar 2023

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

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. beluga >= "1.1"
  8. binsec
  9. bisect_ppx >= "2.0.0" & < "2.6.0"
  10. bitgenerators
  11. caldav >= "0.2.3"
  12. camlp5 >= "8.00~alpha04" & < "8.00" | >= "8.00.05"
  13. camlrack
  14. capnp >= "3.6.0"
  15. charset
  16. cll
  17. clp_operations
  18. cobs
  19. cohttp-async >= "6.0.0"
  20. cohttp-curl-async >= "6.0.0"
  21. cohttp-curl-lwt >= "6.0.0"
  22. cohttp-lwt-unix >= "6.0.0"
  23. colibri2
  24. conjury >= "2.0.1"
  25. containers = "3.8"
  26. coq-core < "8.19.0"
  27. crc >= "2.2.0"
  28. ctypes >= "0.21.1"
  29. ctypes-foreign >= "0.21.1"
  30. cudf >= "0.10"
  31. debian-formats >= "0.1.2"
  32. decoders-bencode >= "1.0.0"
  33. decoders-cbor >= "1.0.0"
  34. decoders-ezjsonm >= "1.0.0"
  35. decoders-jsonaf
  36. decoders-jsonm >= "1.0.0"
  37. decoders-msgpck >= "1.0.0"
  38. decoders-sexplib >= "1.0.0"
  39. decoders-yojson >= "1.0.0"
  40. devkit >= "1.20210120"
  41. dkml-c-probe >= "3.0.0"
  42. dtoa >= "0.3.3"
  43. dual
  44. edn >= "0.2.0"
  45. epictetus
  46. errpy
  47. expect >= "0.1.0"
  48. extunix >= "0.3.1"
  49. fileutils >= "0.6.4"
  50. gapi-ocaml >= "0.4.3"
  51. gen >= "1.0"
  52. gettext >= "0.5.0"
  53. gettext-camomile >= "0.5.0"
  54. gettext-stub >= "0.5.0"
  55. goblint
  56. google-drive-ocamlfuse >= "0.7.29"
  57. inotify >= "2.4"
  58. inotify-eio
  59. iostream
  60. iostream-camlzip
  61. ipaddr >= "5.3.1"
  62. ipaddr-sexp >= "5.3.1"
  63. iter >= "1.6"
  64. jsonschema2atd
  65. junit_ounit >= "2.1.0"
  66. jupyter >= "2.7.6"
  67. kind2
  68. lambdasoup >= "0.7.2"
  69. letsencrypt >= "1.0.0"
  70. leveldb >= "1.3.0"
  71. lz4 >= "1.2.0"
  72. macaddr >= "5.3.1"
  73. macaddr-sexp >= "5.3.1"
  74. markdown
  75. markup >= "1.0.0-1"
  76. mirage-block-ccm
  77. mirage-block-unix >= "2.13.0"
  78. mirage-bootvar
  79. mirage-crypto >= "0.10.6"
  80. mirage-crypto-ec >= "1.1.0"
  81. mirage-crypto-pk >= "0.10.6"
  82. mirage-crypto-rng >= "0.10.6"
  83. mlbdd >= "0.7.2"
  84. mock-ounit >= "1.0.0"
  85. mustache = "3.2.0"
  86. mustache-cli
  87. mutaml
  88. mysql_protocol
  89. ocolor >= "1.3.1"
  90. orsetto >= "1.0.3"
  91. otoml >= "0.9.2"
  92. ounit >= "2.2.7"
  93. ounit2-lwt >= "2.2.7"
  94. pa_ppx < "0.07"
  95. packstream
  96. parsite
  97. pcre >= "8.0.3"
  98. pcre2 >= "7.5.2"
  99. plato
  100. posix-getopt >= "2.0.0"
  101. ppx_camlrack
  102. ppx_const >= "2.0"
  103. ppx_deriving >= "5.2"
  104. ppx_deriving_protobuf >= "3.0.0"
  105. ppx_deriving_yojson >= "3.7.0"
  106. ppx_getenv >= "2.0"
  107. ppx_make
  108. ppx_pyformat
  109. ppx_viewpattern
  110. qcheck-ounit >= "0.14"
  111. qmp >= "0.19.0"
  112. qtest >= "2.11.1"
  113. re >= "1.12.0"
  114. redis >= "0.7"
  115. redis-lwt >= "0.5"
  116. redis-sync >= "0.5"
  117. rocq-prover
  118. rtree
  119. sd_logic
  120. sha >= "1.15.1"
  121. shared-block-ring
  122. sifun
  123. starpath
  124. synopsis >= "1.1"
  125. tar-mirage >= "2.0.0" & < "2.4.0"
  126. tiny_httpd >= "0.8" & < "0.13"
  127. tls >= "0.13.0"
  128. toml >= "7.0.0"
  129. toml_cconv >= "7.0.0"
  130. tuntap >= "2.0.1"
  131. uri >= "4.4.0"
  132. uri-re >= "4.4.0"
  133. uri-sexp >= "4.4.0"
  134. vchan >= "6.0.2"
  135. vec >= "0.2.0"
  136. vhd-format-lwt = "0.12.3"
  137. vlq >= "0.2.1"
  138. xdg-basedir >= "0.0.5"
  139. xenstore >= "2.2.0"
  140. zarr
  141. zarr-eio
  142. zarr-lwt
  143. zarr-sync
  144. zmq >= "5.1.1"
  145. zmq-async >= "5.1.1"
  146. zmq-eio
  147. zmq-lwt >= "5.1.1"

Conflicts

None

OCaml

Innovation. Community. Security.