package ounit2

  1. Overview
  2. Docs
OUnit testing framework

Install

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

Published: 27 Jan 2020

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

Conflicts

None

OCaml

Innovation. Community. Security.