package ounit2

  1. Overview
  2. Docs
OUnit testing framework

Install

dune-project
 Dependency

Authors

Maintainers

Sources

ounit-v2.2.2.tbz
sha256=53439ae8958d4016afd596d7afbe0b613163533761253e8c781d7afe3d6b9dc0
sha512=24c56141c9063c81e9cd193f9b927f01766e344bd8fbddd702fe1a2765e1bf626082d7b0b29704e1c86ce6eb67493d1f70c0a454e39c6e79209820d0e60db9bd

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

Travis status AppVeyor status

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.

Installation

The recommended way to install ounit is via the opam package manager:

$ opam install ounit

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. base-unix
  3. base-bytes
  4. dune >= "1.11.0"
  5. ocaml >= "4.02.3" & < "5.0"

Dev Dependencies

None

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

Conflicts

None