package ounit2

  1. Overview
  2. Docs
OUnit testing framework

Install

Dune 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

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

Conflicts

None

OCaml

Innovation. Community. Security.