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 < "0.2.0"
  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. checkseum >= "0.0.3"
  60. cid
  61. clarity-lang
  62. class_group_vdf
  63. cohttp >= "0.17.0" & < "6.0.0"
  64. cohttp-curl-async < "6.0.0"
  65. cohttp-curl-lwt < "6.0.0"
  66. cohttp-eio = "6.0.0~beta2"
  67. colombe
  68. color
  69. conan < "0.0.3"
  70. conan-cli < "0.0.3"
  71. conan-database < "0.0.3"
  72. conan-lwt < "0.0.3"
  73. conan-unix < "0.0.3"
  74. conex < "0.10.0"
  75. conex-mirage-crypto
  76. conex-nocrypto
  77. cookie
  78. cow >= "2.2.0" & < "2.5.0"
  79. css
  80. css-parser
  81. cstruct >= "3.3.0"
  82. cstruct-sexp
  83. ctypes-zarith
  84. cuid
  85. curly
  86. current_incr
  87. data-encoding < "1.0.0"
  88. datakit-bridge-github >= "0.11.0"
  89. datakit-ci
  90. datakit-client-git != "0.12.0"
  91. decompress >= "0.8" & < "1.5.3"
  92. depyt
  93. digestif < "0.2" | >= "0.7"
  94. dispatch = "0.4.1"
  95. dkim
  96. dkim-bin
  97. dkim-mirage
  98. dns >= "4.0.0"
  99. dns-cli
  100. dns-client >= "4.6.0"
  101. dns-forward < "0.9.0"
  102. dns-forward-lwt-unix
  103. dns-resolver
  104. dns-server
  105. dns-tsig
  106. dnssd
  107. dnssec
  108. docfd >= "2.2.0"
  109. dog < "0.2.1"
  110. domain-name
  111. dot-merlin-reader = "5.3~5.3preview"
  112. dream
  113. dream-pure
  114. duff
  115. dune-release >= "1.0.0"
  116. emile
  117. encore
  118. eqaf >= "0.5"
  119. equinoxe
  120. equinoxe-cohttp
  121. equinoxe-hlc
  122. FPauth
  123. FPauth-core
  124. FPauth-responses
  125. FPauth-strategies
  126. farfadet
  127. fat-filesystem >= "0.12.0"
  128. ff
  129. ff-pbt
  130. fiat-p256
  131. flex-array
  132. fsevents-lwt
  133. functoria >= "2.2.0"
  134. functoria-runtime >= "2.2.0" & != "3.0.1" & < "4.0.0~beta1"
  135. geojson
  136. geoml >= "0.1.1"
  137. git = "1.3.0" | = "1.4.10" | >= "1.5.0" & != "1.10.0" & < "2.0.0"
  138. git-mirage < "2.0.0"
  139. git-split
  140. git-unix >= "1.10.0" & < "2.0.0"
  141. gitlab-unix
  142. gmap >= "0.3.0"
  143. gpt
  144. graphql
  145. graphql-async
  146. graphql-cohttp >= "0.13.0"
  147. graphql-lwt
  148. graphql_parser < "0.9.0"
  149. graphql_ppx >= "0.7.1"
  150. h1_parser
  151. h2
  152. hacl_func
  153. hacl_x25519 >= "0.2.0"
  154. highlexer
  155. hkdf
  156. hockmd
  157. html_of_jsx
  158. http < "6.0.0"
  159. http-multipart-formdata < "2.0.0"
  160. httpaf >= "0.2.0"
  161. httpun
  162. httpun-ws
  163. icalendar
  164. imagelib >= "20200929"
  165. index
  166. inferno >= "20220603"
  167. influxdb-async
  168. influxdb-lwt
  169. inquire < "0.2.0"
  170. interval-map
  171. iomux
  172. irmin < "0.8.0" | >= "0.9.0" & < "0.9.6" | >= "1.0.0" & < "1.2.0" | >= "2.0.0" & < "2.3.0"
  173. irmin-bench >= "2.7.0"
  174. irmin-chunk >= "2.3.0"
  175. irmin-cli
  176. irmin-containers
  177. irmin-fs < "2.0.0" | >= "2.3.0"
  178. irmin-git < "2.0.0" | >= "2.3.0"
  179. irmin-http < "2.0.0"
  180. irmin-mem < "1.3.0"
  181. irmin-pack >= "2.4.0" & != "2.6.1"
  182. irmin-pack-tools
  183. irmin-tezos
  184. irmin-tezos-utils
  185. irmin-unix >= "1.0.0" & < "1.3.3" | >= "2.4.0" & != "2.6.1"
  186. irmin-watcher
  187. jekyll-format >= "0.2.0"
  188. jerboa
  189. jitsu
  190. jose
  191. json-data-encoding >= "0.9"
  192. json_decoder
  193. jsonxt
  194. junit_alcotest = "2.0.2"
  195. jwto
  196. ke >= "0.2"
  197. kkmarkdown
  198. lambda-runtime
  199. lambdapi >= "2.0.0"
  200. lambdoc >= "1.0-beta4"
  201. ledgerwallet-tezos >= "0.2.1" & < "0.4.0"
  202. lmdb >= "1.0"
  203. logical
  204. logtk >= "1.5.1"
  205. lp
  206. lp-glpk
  207. lp-glpk-js
  208. lp-gurobi
  209. lru
  210. lt-code
  211. mbr-format >= "1.0.0"
  212. mdx >= "1.6.0"
  213. mec
  214. mechaml < "1.0.0"
  215. merge-queues >= "0.2.0"
  216. merge-ropes >= "0.2.0"
  217. merlin >= "4.17.1-414" & < "4.18-414" | >= "5.2.1-502" & < "5.3-502"
  218. merlin-lib >= "4.17.1-414" & < "4.18-414" | >= "5.2.1-502" & < "5.3-502"
  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.1"
  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. 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. obatcher
  258. ocaml-index = "1.1"
  259. ocaml-r >= "0.5.0"
  260. ocaml-version >= "3.1.0"
  261. ocamlformat >= "0.13.0" & < "0.25.1"
  262. ocamlformat-rpc < "removed"
  263. ocamline
  264. ohex
  265. oidc
  266. opam-0install
  267. opam-0install-cudf >= "0.5.0"
  268. opam-file-format >= "2.1.1" & < "2.2.0~alpha1"
  269. opentelemetry >= "0.6"
  270. opentelemetry-client-cohttp-lwt >= "0.6"
  271. opentelemetry-client-ocurl >= "0.6"
  272. opentelemetry-cohttp-lwt >= "0.6"
  273. opentelemetry-lwt >= "0.6"
  274. opium >= "0.15.0"
  275. opium-graphql
  276. opium-testing
  277. opium_kernel
  278. osx-acl
  279. osx-attr
  280. osx-cf
  281. osx-fsevents
  282. osx-membership
  283. osx-mount
  284. osx-xattr
  285. otoggl
  286. owl >= "0.6.0" & != "0.9.0" & != "1.0.0"
  287. owl-base < "0.5.0"
  288. owl-ode >= "0.1.0" & != "0.2.0"
  289. owl-symbolic
  290. passmaker
  291. patch < "2.0.0"
  292. pbkdf < "0.3.0"
  293. pecu >= "0.2"
  294. pf-qubes
  295. pg_query >= "0.9.6"
  296. phylogenetics
  297. piaf
  298. polyglot
  299. polynomial
  300. ppx_blob >= "0.3.0"
  301. ppx_deriving_cmdliner
  302. ppx_deriving_ezjsonm
  303. ppx_deriving_rpc
  304. ppx_deriving_yaml
  305. ppx_subliner
  306. ppx_units
  307. ppx_yojson >= "1.1.0"
  308. pratter < "3.0.0"
  309. prc
  310. preface
  311. pretty_expressive
  312. prettym
  313. proc-smaps
  314. producer < "0.2.0"
  315. prometheus < "1.2"
  316. prometheus-app
  317. protocell
  318. psq
  319. qcheck >= "0.18" & < "0.22"
  320. quickjs
  321. radis
  322. randii
  323. reason-standard
  324. red-black-tree
  325. reparse >= "2.0.0" & < "3.0.0"
  326. reparse-unix < "2.1.0"
  327. resp < "0.10.0"
  328. resp-unix
  329. rfc1951 < "1.0.0"
  330. routes < "2.0.0"
  331. rpc >= "5.9.0"
  332. rpclib
  333. rpclib-async
  334. rpclib-lwt
  335. rpmfile < "0.3.0"
  336. rpmfile-eio
  337. rpmfile-unix
  338. rubytt
  339. SZXX >= "4.0.0"
  340. salsa20
  341. salsa20-core
  342. sanddb >= "0.2"
  343. scrypt-kdf
  344. secp256k1-internal
  345. semver >= "0.2.1"
  346. sendmail
  347. sendmail-lwt
  348. sendmail-miou-unix
  349. sendmail-mirage
  350. sendmsg
  351. server-reason-react
  352. session-cookie
  353. session-cookie-async
  354. session-cookie-lwt
  355. sherlodoc
  356. slug
  357. smaws-clients
  358. smaws-lib
  359. sodium-fmt
  360. spin >= "0.6.0"
  361. squirrel
  362. ssh-agent
  363. ssl >= "0.6.0"
  364. stramon-lib
  365. styled-ppx
  366. tcpip >= "2.4.2" & < "3.0.0"
  367. tdigest < "2.1.0"
  368. terminal_size >= "0.1.1"
  369. terminus
  370. terminus-cohttp
  371. terminus-hlc
  372. terml
  373. testo
  374. testo-lwt
  375. textrazor
  376. tezos-base-test-helpers < "16.0"
  377. tezos-test-helpers < "12.3"
  378. tftp
  379. timedesc
  380. timere
  381. tls >= "0.12.0"
  382. toc
  383. topojson
  384. topojsone
  385. transept
  386. type_eq
  387. type_id
  388. typebeat
  389. typeid >= "1.0.1"
  390. tyxml >= "4.0.0"
  391. tyxml-jsx
  392. tyxml-ppx >= "4.3.0"
  393. tyxml-syntax
  394. ulid
  395. universal-portal
  396. unix-dirent
  397. unix-errno >= "0.3.0"
  398. unix-fcntl >= "0.3.0"
  399. unix-sys-resource
  400. unix-sys-stat
  401. unix-time
  402. unstrctrd
  403. uspf
  404. uspf-lwt
  405. uspf-mirage
  406. uspf-unix
  407. utop >= "2.13.0"
  408. validate
  409. validator
  410. vercel
  411. vhd-format-lwt >= "0.13.0"
  412. vpnkit
  413. wcwidth
  414. websocketaf
  415. x509 >= "0.7.0"
  416. xapi-rrd >= "1.8.2"
  417. xapi-stdext-date
  418. xapi-stdext-encodings < "4.20.0"
  419. xapi-stdext-std >= "4.16.0"
  420. yaml < "3.2.0"
  421. yaml-sexp
  422. yocaml < "2.0.0"
  423. yocaml_syndication = "2.0.0"
  424. yocaml_yaml < "2.0.0"
  425. yuscii >= "0.2.0"
  426. zar
  427. zed >= "3.2.2"

Conflicts

None

OCaml

Innovation. Community. Security.