package ounit2

  1. Overview
  2. Docs
OUnit testing framework

Install

Dune Dependency

Authors

Maintainers

Sources

ounit-v2.2.3.tbz
sha256=e280a64aa7df64bd7335c9ed68a70d6ee168b39ae8bbfb6daedd2f4a04844ad9
sha512=dff04859d263e5f80a1606156d07493d0320a2756d0a7f134c63c53078550c7b056587486922bc66a288413af30c59a7e47157636502c6dd10626cf75587f981

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: 12 Jul 2020

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

Conflicts

None

OCaml

Innovation. Community. Security.