package ounit2

  1. Overview
  2. Docs
OUnit testing framework

Install

Dune Dependency

Authors

Maintainers

Sources

ounit-2.2.5.tbz
sha256=1b0d182b5eae536f37605f379b8e42a35d587471b917cee3d033bea20f7cbe55
sha512=2e519ff032843298b4dd716d7b3460d4720fe59ba1535a32fc9ef58eae4fcc80d3ec59ddb7b22653f064ef8ae02d19ae1afd2ed7de16c34d396ea180a6e33cb1

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 2022

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.

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. base-unix
  3. base-bytes
  4. dune >= "1.11.0"
  5. ocaml >= "4.04.0" & < "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. camlrack
  13. capnp >= "3.6.0"
  14. charset
  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. colibri2
  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. gapi-ocaml
  50. gen >= "1.0"
  51. giflib
  52. goblint
  53. google-drive-ocamlfuse
  54. inotify >= "2.4"
  55. inotify-eio
  56. iostream
  57. iostream-camlzip
  58. ipaddr >= "5.6.0"
  59. ipaddr-sexp
  60. iter >= "1.6"
  61. jsonschema2atd
  62. junit_ounit >= "2.1.0"
  63. jupyter >= "2.7.6"
  64. kind2
  65. lambdasoup >= "0.7.2"
  66. letsencrypt >= "1.0.0"
  67. leveldb >= "1.3.0"
  68. lz4 >= "1.2.0"
  69. macaddr >= "5.6.0"
  70. macaddr-sexp
  71. markdown
  72. markup >= "1.0.0-1"
  73. mirage-block-ccm
  74. mirage-block-unix >= "2.14.2"
  75. mirage-bootvar
  76. mirage-crypto >= "0.10.7"
  77. mirage-crypto-ec >= "1.1.0"
  78. mirage-crypto-pk
  79. mirage-crypto-rng >= "0.10.7"
  80. mlbdd >= "0.7.2"
  81. mock-ounit >= "1.0.0"
  82. mustache = "3.2.0"
  83. mustache-cli
  84. mutaml
  85. mysql_protocol
  86. ocolor >= "1.3.1"
  87. orsetto >= "1.0.3"
  88. otoml >= "0.9.2"
  89. ounit = "2.2.5"
  90. ounit2-lwt = "2.2.5"
  91. packstream
  92. parsite
  93. pcre >= "8.0.3"
  94. pcre2 >= "7.5.2"
  95. plato
  96. posix-getopt >= "2.0.0"
  97. ppx_camlrack
  98. ppx_const >= "2.0"
  99. ppx_deriving >= "5.2"
  100. ppx_deriving_protobuf >= "3.0.0"
  101. ppx_deriving_yojson >= "3.7.0"
  102. ppx_getenv >= "2.0"
  103. ppx_make
  104. ppx_pyformat
  105. ppx_viewpattern
  106. qcheck-ounit >= "0.17"
  107. qmp >= "0.19.0"
  108. qtest >= "2.11.1"
  109. re >= "1.12.0"
  110. redis >= "0.7"
  111. redis-lwt >= "0.5"
  112. redis-sync >= "0.5"
  113. rocq-prover
  114. rtree
  115. sd_logic
  116. sha >= "1.15.1"
  117. shared-block-ring
  118. sifun
  119. smtml
  120. starpath
  121. tiny_httpd >= "0.8" & < "0.13"
  122. tls >= "0.14.1"
  123. toml >= "7.0.0"
  124. toml_cconv >= "7.0.0"
  125. tuntap
  126. uri >= "4.4.0"
  127. uri-re >= "4.4.0"
  128. uri-sexp >= "4.4.0"
  129. vchan >= "6.0.2"
  130. vec >= "0.2.0"
  131. vhd-format-lwt = "0.12.3"
  132. vlq >= "0.2.1"
  133. xdg-basedir >= "0.0.5"
  134. xenstore
  135. zarr
  136. zarr-eio
  137. zarr-lwt
  138. zarr-sync
  139. zmq >= "5.1.1"
  140. zmq-async >= "5.1.1"
  141. zmq-eio
  142. zmq-lwt >= "5.1.1"

Conflicts

None

OCaml

Innovation. Community. Security.