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. ambient-context-lwt
  6. ansi >= "0.6.0"
  7. archetype >= "1.4.2"
  8. archi
  9. arp
  10. arp-mirage
  11. arrakis
  12. art
  13. asli >= "0.2.0"
  14. asn1-combinators >= "0.2.2" & < "0.3.0"
  15. atd >= "2.3.3"
  16. atdgen >= "2.10.0"
  17. atdpy
  18. atdts
  19. base32
  20. base64 >= "2.3.0"
  21. bechamel >= "0.5.0"
  22. bigarray-overlap
  23. bigstring >= "0.3"
  24. bigstring-unix >= "0.3"
  25. bigstringaf
  26. bitlib
  27. blake2
  28. bloomf
  29. bls12-381 < "0.4.1" | >= "3.0.0" & < "18.0"
  30. bls12-381-hash
  31. bls12-381-js >= "0.4.2"
  32. bls12-381-js-gen >= "0.4.2"
  33. bls12-381-legacy
  34. bls12-381-signature
  35. bls12-381-unix
  36. blurhash
  37. builder-web
  38. bulletml
  39. bytebuffer
  40. ca-certs
  41. ca-certs-nss
  42. cactus
  43. calendar >= "3.0.0"
  44. callipyge
  45. camlix
  46. camlkit
  47. camlkit-base
  48. capnp-rpc < "0.6.0"
  49. capnp-rpc-lwt < "0.3"
  50. carray
  51. carton
  52. cborl
  53. ccss >= "1.6"
  54. cf-lwt
  55. chacha
  56. channel
  57. charrua-client
  58. charrua-client-lwt
  59. charrua-client-mirage < "0.11.0"
  60. checked_oint < "0.1.1"
  61. checkseum >= "0.0.3"
  62. cid
  63. clarity-lang
  64. class_group_vdf
  65. cohttp >= "0.17.0"
  66. cohttp-curl-async
  67. cohttp-curl-lwt
  68. cohttp-eio >= "6.0.0~beta2"
  69. colombe
  70. color
  71. conan < "0.0.3"
  72. conan-cli < "0.0.3"
  73. conan-database < "0.0.3"
  74. conan-lwt < "0.0.3"
  75. conan-unix < "0.0.3"
  76. conduit = "3.0.0"
  77. conex < "0.10.0"
  78. conex-mirage-crypto
  79. conex-nocrypto
  80. cookie
  81. cow >= "2.2.0" & < "2.5.0"
  82. css
  83. css-parser
  84. cstruct >= "3.3.0"
  85. cstruct-sexp
  86. ctypes-zarith
  87. cuid
  88. curly
  89. current_incr
  90. data-encoding < "1.0.0"
  91. datakit-bridge-github >= "0.11.0"
  92. datakit-ci
  93. datakit-client-git != "0.12.0"
  94. decompress >= "0.8" & < "1.5.3"
  95. depyt
  96. digestif < "0.2" | >= "0.7"
  97. dispatch = "0.4.1"
  98. dkim
  99. dkim-bin
  100. dkim-mirage
  101. dns >= "4.0.0"
  102. dns-cli
  103. dns-client >= "4.6.0"
  104. dns-forward < "0.9.0"
  105. dns-forward-lwt-unix
  106. dns-resolver
  107. dns-server
  108. dns-tsig
  109. dnssd
  110. dnssec
  111. docfd >= "2.2.0"
  112. dog < "0.2.1"
  113. domain-name
  114. dream
  115. dream-pure
  116. duff
  117. dune-release >= "1.0.0"
  118. emile
  119. encore
  120. eqaf >= "0.5"
  121. equinoxe
  122. equinoxe-cohttp
  123. equinoxe-hlc
  124. eris
  125. eris-lwt
  126. FPauth
  127. FPauth-core
  128. FPauth-responses
  129. FPauth-strategies
  130. farfadet
  131. fat-filesystem >= "0.12.0"
  132. ff
  133. ff-pbt
  134. fiat-p256
  135. flex-array
  136. fsevents-lwt
  137. functoria >= "2.2.0"
  138. functoria-runtime >= "2.2.0" & != "3.0.1" & < "4.0.0~beta1"
  139. geojson
  140. geoml >= "0.1.1"
  141. git = "1.3.0" | = "1.4.10" | >= "1.5.0" & != "1.10.0" & < "2.0.0"
  142. git-mirage < "2.0.0"
  143. git-unix >= "1.10.0" & < "2.0.0"
  144. gitlab-unix
  145. gmap >= "0.3.0"
  146. gpt
  147. graphql
  148. graphql-async
  149. graphql-cohttp >= "0.13.0"
  150. graphql-lwt
  151. graphql_parser < "0.9.0"
  152. graphql_ppx >= "0.7.1"
  153. h1_parser
  154. h2
  155. hacl_func
  156. hacl_x25519 >= "0.2.0"
  157. highlexer
  158. hkdf
  159. hockmd
  160. html_of_jsx
  161. http
  162. http-multipart-formdata < "2.0.0"
  163. httpaf >= "0.2.0"
  164. icalendar
  165. imagelib >= "20200929"
  166. index
  167. inferno >= "20220603"
  168. influxdb-async
  169. influxdb-lwt
  170. inquire < "0.2.0"
  171. interval-map
  172. iomux
  173. irmin < "0.8.0" | >= "0.9.0" & < "0.9.6" | >= "1.0.0" & < "1.2.0" | >= "2.0.0" & < "2.3.0"
  174. irmin-bench >= "2.7.0"
  175. irmin-chunk >= "2.3.0"
  176. irmin-cli
  177. irmin-containers
  178. irmin-fs < "2.0.0" | >= "2.3.0"
  179. irmin-git < "2.0.0" | >= "2.3.0"
  180. irmin-http < "2.0.0"
  181. irmin-mem < "1.3.0"
  182. irmin-pack >= "2.4.0" & != "2.6.1"
  183. irmin-pack-tools
  184. irmin-tezos
  185. irmin-tezos-utils
  186. irmin-unix >= "1.0.0" & < "1.3.3" | >= "2.4.0" & != "2.6.1"
  187. irmin-watcher
  188. jekyll-format >= "0.2.0"
  189. jerboa
  190. jitsu
  191. jose
  192. json-data-encoding >= "0.9"
  193. json_decoder
  194. jsonxt
  195. junit_alcotest >= "2.0.2"
  196. jwto
  197. ke >= "0.2"
  198. kkmarkdown
  199. lambda-runtime
  200. lambdapi >= "2.0.0"
  201. lambdoc >= "1.0-beta4"
  202. ledgerwallet-tezos >= "0.2.1" & < "0.4.0"
  203. lmdb >= "1.0"
  204. logical
  205. logtk >= "1.5.1"
  206. lp
  207. lp-glpk
  208. lp-glpk-js
  209. lp-gurobi
  210. lru
  211. lt-code
  212. mbr-format >= "1.0.0"
  213. mdx >= "1.6.0"
  214. mec
  215. mechaml < "1.0.0"
  216. merge-queues >= "0.2.0"
  217. merge-ropes >= "0.2.0"
  218. metrics
  219. mirage >= "4.0.0~beta1"
  220. mirage-block-partition < "0.2.0"
  221. mirage-block-ramdisk >= "0.3"
  222. mirage-channel >= "4.0.0"
  223. mirage-channel-lwt
  224. mirage-crypto-ec < "0.11.0"
  225. mirage-flow < "1.2.0"
  226. mirage-flow-unix
  227. mirage-fs-mem
  228. mirage-fs-unix >= "1.2.0" & < "1.3.0"
  229. mirage-kv >= "2.0.0" & < "6.1.0"
  230. mirage-kv-mem
  231. mirage-logs >= "0.3.0"
  232. mirage-nat
  233. mirage-net-fd
  234. mirage-net-flow
  235. mirage-net-unix >= "2.3.0"
  236. mirage-runtime >= "4.0.0~beta1" & < "4.5.0"
  237. mirage-tc
  238. mjson
  239. mnd
  240. monocypher
  241. mrmime
  242. mrt-format
  243. multibase
  244. multihash
  245. multihash-digestif
  246. multipart-form-data
  247. multipart_form
  248. multipart_form-eio
  249. multipart_form-lwt
  250. nanoid
  251. nbd >= "4.0.3"
  252. nbd-tool
  253. nloge
  254. nocoiner
  255. non_empty_list
  256. OCADml >= "0.6.0"
  257. ocaml-r >= "0.5.0"
  258. ocaml-version >= "3.1.0"
  259. ocamlformat >= "0.13.0" & != "0.19.0~4.13preview" & < "0.25.1"
  260. ocamlformat-rpc < "removed"
  261. ocamline
  262. ohex
  263. oidc
  264. opam-0install
  265. opam-file-format >= "2.1.1"
  266. opentelemetry >= "0.6"
  267. opentelemetry-client-cohttp-lwt >= "0.6"
  268. opentelemetry-client-ocurl >= "0.6"
  269. opentelemetry-cohttp-lwt >= "0.6"
  270. opentelemetry-lwt >= "0.6"
  271. opium >= "0.15.0"
  272. opium-graphql
  273. opium-testing
  274. opium_kernel
  275. osx-acl
  276. osx-attr
  277. osx-cf
  278. osx-fsevents
  279. osx-membership
  280. osx-mount
  281. osx-xattr
  282. otoggl
  283. owl >= "0.6.0" & != "0.9.0" & != "1.0.0"
  284. owl-base < "0.5.0"
  285. owl-ode >= "0.1.0" & != "0.2.0"
  286. owl-symbolic
  287. passmaker
  288. patch < "2.0.0"
  289. pbkdf < "0.3.0"
  290. pecu >= "0.2"
  291. pf-qubes
  292. pg_query >= "0.9.6"
  293. phylogenetics
  294. piaf
  295. polyglot
  296. polynomial
  297. ppx_blob >= "0.3.0"
  298. ppx_deriving_cmdliner
  299. ppx_deriving_rpc
  300. ppx_deriving_yaml
  301. ppx_parser
  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"
  317. qcheck-core >= "0.18"
  318. quickjs
  319. radis
  320. randii
  321. reason-standard
  322. reparse >= "2.0.0" & < "3.0.0"
  323. reparse-unix < "2.1.0"
  324. resp < "0.10.0"
  325. resp-unix
  326. rfc1951 < "1.0.0"
  327. routes < "2.0.0"
  328. rpc >= "5.9.0"
  329. rpclib
  330. rpclib-async
  331. rpclib-lwt
  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.