package alcotest

  1. Overview
  2. Docs
Alcotest is a lightweight and colourful test framework, based on OUnit.

Install

Dune Dependency

Authors

Maintainers

Sources

0.3.3.tar.gz
sha256=a441d8aaaa9c76d093b3e9990b60e66d0506ddf68cdf54d9bc439a763cc6b638
md5=18e0363a5dee713c315af648c7cfde37

Description

Alcotest exposes a much more restricted interface than OUnit, as you can only pass to Alcotest.run a tree of callbacks of depth 2, and the callbacks are unit -> unit functions that you can build using the usual OUnit.assert_* functions or any other means (including Quickcheck-like test generators).

This limitation enables Alcotest to provide a quiet and colorful output where only faulty runs are fully displayed at the end of the run (with the full logs ready to inspect), with a simple (yet expressive) query language to select the tests to run.

Published: 22 Jun 2015

Dependencies (6)

  1. ocamlbuild build
  2. cmdliner
  3. re
  4. ounit >= "1.1.2"
  5. ocamlfind
  6. ocaml >= "4.00.1" & < "4.06.0"

Dev Dependencies

None

  1. ahrocksdb
  2. albatross >= "1.5.0"
  3. ambient-context
  4. ambient-context-eio
  5. ansi >= "0.6.0"
  6. archetype >= "1.4.2"
  7. archi
  8. arp
  9. arp-mirage
  10. arrakis
  11. art
  12. asli >= "0.2.0"
  13. asn1-combinators >= "0.2.2" & < "0.3.0"
  14. atd >= "2.3.3"
  15. atdgen >= "2.10.0"
  16. atdpy
  17. atdts
  18. base32
  19. base64 >= "2.3.0"
  20. bechamel >= "0.5.0"
  21. bigarray-overlap
  22. bigstring >= "0.3"
  23. bigstring-unix >= "0.3"
  24. bigstringaf
  25. bitlib
  26. blake2
  27. bloomf
  28. bls12-381 < "0.4.1" | >= "3.0.0" & < "18.0"
  29. bls12-381-hash
  30. bls12-381-js >= "0.4.2"
  31. bls12-381-js-gen >= "0.4.2"
  32. bls12-381-legacy
  33. bls12-381-signature
  34. bls12-381-unix
  35. blurhash
  36. builder-web
  37. bulletml
  38. bytebuffer
  39. ca-certs
  40. ca-certs-nss
  41. cactus
  42. calendar >= "3.0.0"
  43. callipyge
  44. camlix
  45. camlkit
  46. camlkit-base
  47. capnp-rpc < "0.6.0"
  48. capnp-rpc-lwt < "0.3"
  49. carray
  50. carton
  51. cborl
  52. ccss >= "1.6"
  53. cf-lwt
  54. chacha
  55. channel
  56. charrua-client
  57. charrua-client-lwt
  58. charrua-client-mirage < "0.11.0"
  59. checked_oint < "0.1.1"
  60. checkseum >= "0.0.3"
  61. cid
  62. clarity-lang
  63. class_group_vdf
  64. cohttp >= "0.17.0"
  65. cohttp-curl-async
  66. cohttp-curl-lwt
  67. cohttp-eio >= "6.0.0~beta2"
  68. colombe
  69. color
  70. conan < "0.0.3"
  71. conan-cli < "0.0.3"
  72. conan-database < "0.0.3"
  73. conan-lwt < "0.0.3"
  74. conan-unix < "0.0.3"
  75. conduit = "3.0.0"
  76. conex < "0.10.0"
  77. conex-mirage-crypto
  78. conex-nocrypto
  79. cookie
  80. cow >= "2.2.0" & < "2.5.0"
  81. css
  82. css-parser
  83. cstruct >= "3.3.0"
  84. cstruct-sexp
  85. ctypes-zarith
  86. cuid
  87. curly
  88. current_incr
  89. data-encoding < "1.0.0"
  90. datakit-bridge-github >= "0.11.0"
  91. datakit-ci
  92. datakit-client-git != "0.12.0"
  93. decompress >= "0.8" & < "1.5.3"
  94. depyt
  95. digestif < "0.2" | >= "0.7"
  96. dispatch = "0.4.1"
  97. dkim
  98. dkim-bin
  99. dkim-mirage
  100. dns >= "4.0.0"
  101. dns-cli
  102. dns-client >= "4.6.0"
  103. dns-forward < "0.9.0"
  104. dns-forward-lwt-unix
  105. dns-resolver
  106. dns-server
  107. dns-tsig
  108. dnssd
  109. dnssec
  110. docfd >= "2.2.0"
  111. dog < "0.2.1"
  112. domain-name
  113. dream
  114. dream-pure
  115. duff
  116. dune-release >= "1.0.0"
  117. emile
  118. encore
  119. eqaf >= "0.5"
  120. equinoxe
  121. equinoxe-cohttp
  122. equinoxe-hlc
  123. eris
  124. eris-lwt
  125. FPauth
  126. FPauth-core
  127. FPauth-responses
  128. FPauth-strategies
  129. farfadet
  130. fat-filesystem >= "0.12.0"
  131. ff
  132. ff-pbt
  133. fiat-p256
  134. flex-array
  135. fsevents-lwt
  136. functoria >= "2.2.0"
  137. functoria-runtime >= "2.2.0" & != "3.0.1" & < "4.0.0~beta1"
  138. geojson
  139. geoml >= "0.1.1"
  140. git = "1.3.0" | = "1.4.10" | >= "1.5.0" & != "1.10.0" & < "2.0.0"
  141. git-mirage < "2.0.0"
  142. git-unix >= "1.10.0" & < "2.0.0"
  143. gitlab-unix
  144. gmap >= "0.3.0"
  145. gpt
  146. graphql
  147. graphql-async
  148. graphql-cohttp >= "0.13.0"
  149. graphql-lwt
  150. graphql_parser < "0.9.0"
  151. graphql_ppx >= "0.7.1"
  152. h1_parser
  153. h2
  154. hacl_func
  155. hacl_x25519 >= "0.2.0"
  156. highlexer
  157. hkdf
  158. hockmd
  159. html_of_jsx
  160. http
  161. http-multipart-formdata < "2.0.0"
  162. httpaf >= "0.2.0"
  163. httpun
  164. httpun-ws
  165. icalendar
  166. imagelib >= "20200929"
  167. index
  168. inferno >= "20220603"
  169. influxdb-async
  170. influxdb-lwt
  171. inquire < "0.2.0"
  172. interval-map
  173. iomux
  174. irmin < "0.8.0" | >= "0.9.0" & < "0.9.6" | >= "1.0.0" & < "1.2.0" | >= "2.0.0" & < "2.3.0"
  175. irmin-bench >= "2.7.0"
  176. irmin-chunk >= "2.3.0"
  177. irmin-cli
  178. irmin-containers
  179. irmin-fs < "2.0.0" | >= "2.3.0"
  180. irmin-git < "2.0.0" | >= "2.3.0"
  181. irmin-http < "2.0.0"
  182. irmin-mem < "1.3.0"
  183. irmin-pack >= "2.4.0" & != "2.6.1"
  184. irmin-pack-tools
  185. irmin-tezos
  186. irmin-tezos-utils
  187. irmin-unix >= "1.0.0" & < "1.3.3" | >= "2.4.0" & != "2.6.1"
  188. irmin-watcher
  189. jekyll-format >= "0.2.0"
  190. jerboa
  191. jitsu
  192. jose
  193. json-data-encoding >= "0.9"
  194. json_decoder
  195. jsonxt
  196. junit_alcotest >= "2.0.2"
  197. jwto
  198. ke >= "0.2"
  199. kkmarkdown
  200. lambda-runtime
  201. lambdapi >= "2.0.0"
  202. lambdoc >= "1.0-beta4"
  203. ledgerwallet-tezos >= "0.2.1" & < "0.4.0"
  204. lmdb >= "1.0"
  205. logical
  206. logtk >= "1.5.1"
  207. lp
  208. lp-glpk
  209. lp-glpk-js
  210. lp-gurobi
  211. lru
  212. lt-code
  213. mbr-format >= "1.0.0"
  214. mdx >= "1.6.0"
  215. mec
  216. mechaml < "1.0.0"
  217. merge-queues >= "0.2.0"
  218. merge-ropes >= "0.2.0"
  219. metrics
  220. mirage >= "4.0.0~beta1"
  221. mirage-block-partition < "0.2.0"
  222. mirage-block-ramdisk >= "0.3"
  223. mirage-channel >= "4.0.0"
  224. mirage-channel-lwt
  225. mirage-crypto-ec < "0.11.0"
  226. mirage-flow < "1.2.0"
  227. mirage-flow-unix
  228. mirage-fs-mem
  229. mirage-fs-unix >= "1.2.0" & < "1.3.0"
  230. mirage-kv >= "2.0.0" & < "6.1.0"
  231. mirage-kv-mem
  232. mirage-logs >= "0.3.0"
  233. mirage-nat
  234. mirage-net-fd
  235. mirage-net-flow
  236. mirage-net-unix >= "2.3.0"
  237. mirage-runtime >= "4.0.0~beta1" & < "4.5.0"
  238. mirage-tc
  239. mjson
  240. mnd
  241. monocypher
  242. mrmime
  243. mrt-format
  244. multibase
  245. multihash
  246. multihash-digestif
  247. multipart-form-data
  248. multipart_form
  249. multipart_form-eio
  250. multipart_form-lwt
  251. nanoid
  252. nbd >= "4.0.3"
  253. nbd-tool
  254. nloge
  255. nocoiner
  256. non_empty_list
  257. OCADml >= "0.6.0"
  258. ocaml-r >= "0.5.0"
  259. ocaml-version >= "3.1.0"
  260. ocamlformat >= "0.13.0" & != "0.19.0~4.13preview" & < "0.25.1"
  261. ocamlformat-rpc < "removed"
  262. ocamline
  263. ohex
  264. oidc
  265. opam-0install
  266. opam-file-format >= "2.1.1"
  267. opentelemetry >= "0.6"
  268. opentelemetry-client-cohttp-lwt >= "0.6"
  269. opentelemetry-client-ocurl >= "0.6"
  270. opentelemetry-cohttp-lwt >= "0.6"
  271. opentelemetry-lwt >= "0.6"
  272. opium >= "0.15.0"
  273. opium-graphql
  274. opium-testing
  275. opium_kernel
  276. osx-acl
  277. osx-attr
  278. osx-cf
  279. osx-fsevents
  280. osx-membership
  281. osx-mount
  282. osx-xattr
  283. otoggl
  284. owl >= "0.6.0" & != "0.9.0" & != "1.0.0"
  285. owl-base < "0.5.0"
  286. owl-ode >= "0.1.0" & != "0.2.0"
  287. owl-symbolic
  288. passmaker
  289. patch < "2.0.0"
  290. pbkdf < "0.3.0"
  291. pecu >= "0.2"
  292. pf-qubes
  293. pg_query >= "0.9.6"
  294. phylogenetics
  295. piaf
  296. polyglot
  297. polynomial
  298. ppx_blob >= "0.3.0"
  299. ppx_deriving_cmdliner
  300. ppx_deriving_rpc
  301. ppx_deriving_yaml
  302. ppx_subliner
  303. ppx_units
  304. ppx_yojson >= "1.1.0"
  305. pratter
  306. prc
  307. preface
  308. pretty_expressive
  309. prettym
  310. proc-smaps
  311. producer < "0.2.0"
  312. prometheus < "1.2"
  313. prometheus-app
  314. protocell
  315. psq
  316. qcheck >= "0.18" & < "0.22"
  317. quickjs
  318. radis
  319. randii
  320. reason-standard
  321. reparse >= "2.0.0" & < "3.0.0"
  322. reparse-unix < "2.1.0"
  323. resp < "0.10.0"
  324. resp-unix
  325. rfc1951 < "1.0.0"
  326. routes < "2.0.0"
  327. rpc >= "5.9.0"
  328. rpclib
  329. rpclib-async
  330. rpclib-lwt
  331. rpmfile
  332. rubytt
  333. SZXX >= "4.0.0"
  334. salsa20
  335. salsa20-core
  336. sanddb >= "0.2"
  337. scaml >= "1.5.0"
  338. scrypt-kdf
  339. secp256k1-internal
  340. semver >= "0.2.1"
  341. sendmail
  342. sendmail-lwt
  343. sendmsg
  344. server-reason-react
  345. session-cookie
  346. session-cookie-async
  347. session-cookie-lwt
  348. sherlodoc
  349. slug
  350. sodium-fmt
  351. spin >= "0.6.0"
  352. squirrel
  353. ssh-agent
  354. ssl >= "0.6.0"
  355. stramon-lib
  356. styled-ppx
  357. tcpip >= "2.4.2" & < "3.0.0"
  358. tdigest < "2.1.0"
  359. terminal_size >= "0.1.1"
  360. terminus
  361. terminus-cohttp
  362. terminus-hlc
  363. terml
  364. textrazor
  365. tezos-base-test-helpers < "13.0"
  366. tezos-client-base < "12.0"
  367. tezos-test-helpers < "11.0"
  368. tftp
  369. timedesc
  370. timere
  371. tls >= "0.12.0"
  372. toc
  373. topojson
  374. topojsone
  375. transept
  376. type_eq
  377. type_id
  378. typebeat
  379. typeid >= "1.0.1"
  380. tyxml >= "4.0.0"
  381. tyxml-jsx
  382. tyxml-ppx >= "4.3.0"
  383. tyxml-syntax
  384. ulid
  385. universal-portal
  386. unix-dirent
  387. unix-errno >= "0.3.0"
  388. unix-fcntl >= "0.3.0"
  389. unix-sys-resource
  390. unix-sys-stat
  391. unix-time
  392. unstrctrd
  393. uspf
  394. uspf-lwt
  395. uspf-unix
  396. utop >= "2.13.0"
  397. validate
  398. validator
  399. vercel
  400. vpnkit
  401. wcwidth
  402. websocketaf
  403. x509 >= "0.7.0"
  404. xapi-rrd >= "1.8.2"
  405. xapi-stdext-date
  406. xapi-stdext-encodings < "4.20.0"
  407. xapi-stdext-std >= "4.16.0"
  408. yaml < "3.2.0"
  409. yaml-sexp
  410. yocaml
  411. yocaml_yaml
  412. yuscii >= "0.2.0"
  413. zar
  414. zed >= "3.2.2"

Conflicts

None

OCaml

Innovation. Community. Security.