package ounit2

  1. Overview
  2. Docs
OUnit testing framework

Install

dune-project
 Dependency

Authors

Maintainers

Sources

ounit-v2.2.1.tbz
sha256=db781e8c3cddb2a9be6e0c43b1cd24217d4ce19a4e0c7efe86fd67aca8895e39
sha512=7448a52ffd05f4f05eb5410ad696a8eeb0d2f02f1a104ad91f6490b5b9b901e40a315222ef43612522d9a177a68d1798b401255aadc66f1b45d75abd1744ea37

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: 03 Oct 2019

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

Conflicts

None