package ounit2

Build not checked
  1. Overview
  2. Docs
OUnit testing framework

Install

dune-project
 Dependency

Authors

Maintainers

Sources

ounit-2.2.6.tbz
sha256=0690fb1e0e90a18eed5c3566b3cc1825d98b0e8c7d51bb6b846c95c45a615913
sha512=d7cb36a1fe245d02afab606cd1ee755a178ee4cb18fbbfec1df32baa88fa90ef6c9a50d9fd5bde46c7fd9c481f2debe4bafac75c4e3bdfbdb63fc18b0ccce3cc

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.

Added to opam-repository:

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.

Dev Dependencies

None

Optional 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. atproto
  8. beluga >= "1.1"
  9. binsec
  10. bisect_ppx >= "2.0.0" & < "2.6.0"
  11. bitgenerators
  12. caldav >= "0.2.3"
  13. camlp5 = "8.00~alpha06" | >= "8.02.01"
  14. camlrack
  15. capnp >= "3.6.0"
  16. charset
  17. claudius
  18. cll
  19. clp_operations
  20. cobs
  21. cohttp-async >= "6.0.0"
  22. cohttp-curl-async >= "6.1.0"
  23. cohttp-curl-lwt
  24. cohttp-lwt-unix >= "6.0.0"
  25. colibri2
  26. conjury >= "2.0.1"
  27. containers = "3.8"
  28. coq-core < "8.19.0"
  29. crc >= "2.2.0"
  30. ctypes >= "0.21.1"
  31. ctypes-foreign >= "0.21.1"
  32. cudf >= "0.10"
  33. debian-formats >= "0.1.2"
  34. decoders-bencode >= "1.0.0"
  35. decoders-cbor >= "1.0.0"
  36. decoders-ezjsonm >= "1.0.0"
  37. decoders-jsonaf
  38. decoders-jsonm >= "1.0.0"
  39. decoders-msgpck >= "1.0.0"
  40. decoders-sexplib >= "1.0.0"
  41. decoders-yojson >= "1.0.0"
  42. devkit >= "1.20210120"
  43. dkml-c-probe >= "3.0.0"
  44. dtoa >= "0.3.3"
  45. dual
  46. edn >= "0.2.0"
  47. epictetus
  48. errpy
  49. expect >= "0.1.0"
  50. extunix >= "0.3.1"
  51. fileutils >= "0.6.4"
  52. fuse3
  53. GenArrayIter
  54. gapi-ocaml
  55. gen >= "1.0"
  56. giflib
  57. goblint
  58. google-drive-ocamlfuse
  59. inotify >= "2.4"
  60. inotify-eio
  61. iostream
  62. iostream-camlzip
  63. ipaddr >= "5.6.0"
  64. ipaddr-sexp
  65. irky
  66. iter >= "1.6"
  67. jsonschema2atd
  68. junit_ounit >= "2.1.0"
  69. jupyter >= "2.7.6"
  70. jws
  71. kind2
  72. lambdasoup >= "0.7.2"
  73. letsencrypt >= "1.0.0"
  74. leveldb
  75. luna
  76. lz4 >= "1.2.0"
  77. macaddr >= "5.6.0"
  78. macaddr-sexp
  79. markdown
  80. markdown_monolith
  81. markup >= "1.0.0-1"
  82. mirage-block-ccm
  83. mirage-block-unix >= "2.14.2"
  84. mirage-bootvar
  85. mirage-crypto >= "0.10.7"
  86. mirage-crypto-ec >= "1.1.0"
  87. mirage-crypto-pk
  88. mirage-crypto-rng >= "0.10.7"
  89. mlbdd >= "0.7.2"
  90. mock-ounit >= "1.0.0"
  91. mustache = "3.2.0"
  92. mustache-cli
  93. mutaml
  94. mysql_protocol
  95. nanofuzz_runtime
  96. ocaml-yescrypt
  97. ocamlmod >= "0.1.1"
  98. ocolor >= "1.3.1"
  99. orsetto >= "1.0.3"
  100. otoml >= "0.9.2"
  101. otp
  102. ounit = "2.2.6"
  103. ounit2-lwt = "2.2.6"
  104. packstream
  105. parsite
  106. pcrc
  107. pcre >= "8.0.3"
  108. pcre2 >= "7.5.2"
  109. plato
  110. posix-getopt >= "2.0.0"
  111. ppx_camlrack
  112. ppx_const
  113. ppx_deriving >= "5.2"
  114. ppx_deriving_hash >= "0.1.4"
  115. ppx_deriving_melange
  116. ppx_deriving_protobuf
  117. ppx_deriving_yojson >= "3.7.0"
  118. ppx_getenv
  119. ppx_make
  120. ppx_mikmatch
  121. ppx_pyformat
  122. ppx_viewpattern
  123. qcheck-ounit >= "0.17"
  124. qmp >= "0.19.0"
  125. qtest >= "2.11.1"
  126. re >= "1.12.0"
  127. redis >= "0.7"
  128. redis-lwt >= "0.5"
  129. redis-sync >= "0.5"
  130. rtree
  131. sd_logic
  132. sha >= "1.15.1"
  133. shared-block-ring
  134. shellwords
  135. sifun
  136. smtml >= "0.7.0" & < "0.30.0"
  137. starpath
  138. tiny_httpd >= "0.8" & < "0.13"
  139. tls >= "0.14.1"
  140. toml >= "7.0.0"
  141. toml_cconv >= "7.0.0"
  142. tuntap
  143. unix-type-representations >= "0.1.3"
  144. uri >= "4.4.0"
  145. uri-re >= "4.4.0"
  146. uri-sexp >= "4.4.0"
  147. vchan >= "6.0.2"
  148. vec >= "0.2.0"
  149. vhd-format-lwt = "0.12.3"
  150. vlq >= "0.2.1"
  151. xdg-basedir >= "0.0.5"
  152. xenstore
  153. xenstore_transport >= "1.5.0"
  154. zarr
  155. zarr-eio
  156. zarr-lwt
  157. zarr-sync
  158. zmq >= "5.1.1"
  159. zmq-async >= "5.1.1"
  160. zmq-eio
  161. zmq-lwt >= "5.1.1"

Conflicts

None

Build status

Results of building ounit2 with each compiler on check.ci.ocaml.org, run of against opam-repository 8d8d144. All results for this package.

Each result links to its build log. To keep crawlers from overloading the site, build logs require a GitHub sign-in (see ocurrent/opam-health-check). On your first log, GitHub asks you to “Authorize opam-health-check”, the OCurrent app that runs these checks; it sees only your public profile, not your repositories. The sign-in lasts 30 days.

This version is not in the latest run; the versions below are.

Version OCaml 4.11 OCaml 4.14 OCaml 5.2 OCaml 5.4 OCaml 5.5
2.2.7 good good good good good
  • good Package successfully built
  • partial One of the dependencies failed to build
  • bad Package failed to build
  • n/a Package is not available in this environment
  • internal Internal failure