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

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

Conflicts

None