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"
  64. cohttp-curl-async
  65. cohttp-curl-lwt
  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. conduit = "3.0.0"
  75. conex < "0.10.0"
  76. conex-mirage-crypto
  77. conex-nocrypto
  78. cookie
  79. cow >= "2.2.0" & < "2.5.0"
  80. css
  81. css-parser
  82. cstruct >= "3.3.0"
  83. cstruct-sexp
  84. ctypes-zarith
  85. cuid
  86. curly
  87. current_incr
  88. data-encoding < "1.0.0"
  89. datakit-bridge-github >= "0.11.0"
  90. datakit-ci
  91. datakit-client-git != "0.12.0"
  92. decompress >= "0.8" & < "1.5.3"
  93. depyt
  94. digestif < "0.2" | >= "0.7"
  95. dispatch = "0.4.1"
  96. dkim
  97. dkim-bin
  98. dkim-mirage
  99. dns >= "4.0.0"
  100. dns-cli
  101. dns-client >= "4.6.0"
  102. dns-forward < "0.9.0"
  103. dns-forward-lwt-unix
  104. dns-resolver
  105. dns-server
  106. dns-tsig
  107. dnssd
  108. dnssec
  109. docfd >= "2.2.0"
  110. dog < "0.2.1"
  111. domain-name
  112. dot-merlin-reader >= "5.3~5.3preview"
  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-split
  143. git-unix >= "1.10.0" & < "2.0.0"
  144. git_split
  145. gitlab-unix
  146. gmap >= "0.3.0"
  147. gpt
  148. graphql
  149. graphql-async
  150. graphql-cohttp >= "0.13.0"
  151. graphql-lwt
  152. graphql_parser < "0.9.0"
  153. graphql_ppx >= "0.7.1"
  154. h1_parser
  155. h2
  156. hacl_func
  157. hacl_x25519 >= "0.2.0"
  158. highlexer
  159. hkdf
  160. hockmd
  161. html_of_jsx
  162. http
  163. http-multipart-formdata < "2.0.0"
  164. httpaf >= "0.2.0"
  165. httpun
  166. httpun-ws
  167. icalendar
  168. imagelib >= "20200929"
  169. index
  170. inferno >= "20220603"
  171. influxdb-async
  172. influxdb-lwt
  173. inquire < "0.2.0"
  174. interval-map
  175. iomux
  176. irmin < "0.8.0" | >= "0.9.0" & < "0.9.6" | >= "1.0.0" & < "1.2.0" | >= "2.0.0" & < "2.3.0"
  177. irmin-bench >= "2.7.0"
  178. irmin-chunk >= "2.3.0"
  179. irmin-cli
  180. irmin-containers
  181. irmin-fs < "2.0.0" | >= "2.3.0"
  182. irmin-git < "2.0.0" | >= "2.3.0"
  183. irmin-http < "2.0.0"
  184. irmin-mem < "1.3.0"
  185. irmin-pack >= "2.4.0" & != "2.6.1"
  186. irmin-pack-tools
  187. irmin-tezos
  188. irmin-tezos-utils
  189. irmin-unix >= "1.0.0" & < "1.3.3" | >= "2.4.0" & != "2.6.1"
  190. irmin-watcher
  191. jekyll-format >= "0.2.0"
  192. jerboa
  193. jitsu
  194. jose
  195. json-data-encoding >= "0.9"
  196. json_decoder
  197. jsonxt
  198. junit_alcotest >= "2.0.2"
  199. jwto
  200. ke >= "0.2"
  201. kkmarkdown
  202. lambda-runtime
  203. lambdapi >= "2.0.0"
  204. lambdoc >= "1.0-beta4"
  205. ledgerwallet-tezos >= "0.2.1" & < "0.4.0"
  206. lmdb >= "1.0"
  207. logical
  208. logtk >= "1.5.1"
  209. lp
  210. lp-glpk
  211. lp-glpk-js
  212. lp-gurobi
  213. lru
  214. lt-code
  215. mbr-format >= "1.0.0"
  216. mdx >= "1.6.0"
  217. mec
  218. mechaml < "1.0.0"
  219. merge-queues >= "0.2.0"
  220. merge-ropes >= "0.2.0"
  221. merlin >= "4.17.1-414" & < "5.0-502" | >= "5.2.1-502"
  222. merlin-lib >= "4.17.1-414" & < "5.0-502" | >= "5.2.1-502"
  223. metrics
  224. mirage >= "4.0.0~beta1"
  225. mirage-block-partition < "0.2.0"
  226. mirage-block-ramdisk >= "0.3"
  227. mirage-channel >= "4.0.0"
  228. mirage-channel-lwt
  229. mirage-crypto-ec < "0.11.0"
  230. mirage-flow < "1.2.0"
  231. mirage-flow-unix
  232. mirage-fs-mem
  233. mirage-fs-unix >= "1.2.0" & < "1.3.0"
  234. mirage-kv >= "2.0.0" & < "6.1.0"
  235. mirage-kv-mem
  236. mirage-logs >= "0.3.0"
  237. mirage-nat
  238. mirage-net-fd
  239. mirage-net-flow
  240. mirage-net-unix >= "2.3.0"
  241. mirage-runtime >= "4.0.0~beta1" & < "4.5.0"
  242. mirage-tc
  243. mjson
  244. mnd
  245. monocypher
  246. mrmime
  247. mrt-format
  248. multibase
  249. multihash
  250. multihash-digestif
  251. multipart-form-data
  252. multipart_form
  253. multipart_form-eio
  254. multipart_form-lwt
  255. nanoid
  256. nbd >= "4.0.3"
  257. nbd-tool
  258. nloge
  259. nocoiner
  260. non_empty_list
  261. OCADml >= "0.6.0"
  262. obatcher
  263. ocaml-index >= "1.1"
  264. ocaml-r >= "0.5.0"
  265. ocaml-version >= "3.1.0"
  266. ocamlformat >= "0.13.0" & != "0.19.0~4.13preview" & < "0.25.1"
  267. ocamlformat-rpc < "removed"
  268. ocamline
  269. ohex
  270. oidc
  271. opam-0install
  272. opam-0install-cudf >= "0.5.0"
  273. opam-file-format >= "2.1.1"
  274. opentelemetry >= "0.6"
  275. opentelemetry-client-cohttp-lwt >= "0.6"
  276. opentelemetry-client-ocurl >= "0.6"
  277. opentelemetry-cohttp-lwt >= "0.6"
  278. opentelemetry-lwt >= "0.6"
  279. opium >= "0.15.0"
  280. opium-graphql
  281. opium-testing
  282. opium_kernel
  283. osx-acl
  284. osx-attr
  285. osx-cf
  286. osx-fsevents
  287. osx-membership
  288. osx-mount
  289. osx-xattr
  290. otoggl
  291. owl >= "0.6.0" & != "0.9.0" & != "1.0.0"
  292. owl-base < "0.5.0"
  293. owl-ode >= "0.1.0" & != "0.2.0"
  294. owl-symbolic
  295. passmaker
  296. patch < "2.0.0"
  297. pbkdf < "0.3.0"
  298. pecu >= "0.2"
  299. pf-qubes
  300. pg_query >= "0.9.6"
  301. phylogenetics
  302. piaf
  303. polyglot
  304. polynomial
  305. ppx_blob >= "0.3.0"
  306. ppx_deriving_cmdliner
  307. ppx_deriving_rpc
  308. ppx_deriving_yaml
  309. ppx_subliner
  310. ppx_units
  311. ppx_yojson >= "1.1.0"
  312. pratter
  313. prc
  314. preface
  315. pretty_expressive
  316. prettym
  317. proc-smaps
  318. producer < "0.2.0"
  319. prometheus < "1.2"
  320. prometheus-app
  321. protocell
  322. psq
  323. qcheck >= "0.18" & < "0.22"
  324. quickjs
  325. radis
  326. randii
  327. reason-standard
  328. red-black-tree
  329. reparse >= "2.0.0" & < "3.0.0"
  330. reparse-unix < "2.1.0"
  331. resp < "0.10.0"
  332. resp-unix
  333. rfc1951 < "1.0.0"
  334. routes < "2.0.0"
  335. rpc >= "5.9.0"
  336. rpclib
  337. rpclib-async
  338. rpclib-lwt
  339. rpmfile < "0.3.0"
  340. rpmfile-eio
  341. rpmfile-unix
  342. rubytt
  343. SZXX >= "4.0.0"
  344. salsa20
  345. salsa20-core
  346. sanddb >= "0.2"
  347. scaml >= "1.5.0"
  348. scrypt-kdf
  349. secp256k1-internal
  350. semver >= "0.2.1"
  351. sendmail
  352. sendmail-lwt
  353. sendmail-miou-unix
  354. sendmail-mirage
  355. sendmsg
  356. server-reason-react
  357. session-cookie
  358. session-cookie-async
  359. session-cookie-lwt
  360. sherlodoc
  361. slug
  362. sodium-fmt
  363. spin >= "0.6.0"
  364. squirrel
  365. ssh-agent
  366. ssl >= "0.6.0"
  367. stramon-lib
  368. styled-ppx
  369. tcpip >= "2.4.2" & < "3.0.0"
  370. tdigest < "2.1.0"
  371. terminal_size >= "0.1.1"
  372. terminus
  373. terminus-cohttp
  374. terminus-hlc
  375. terml
  376. textrazor
  377. tezos-base-test-helpers < "13.0"
  378. tezos-client-base < "12.0"
  379. tezos-test-helpers < "11.0"
  380. tftp
  381. timedesc
  382. timere
  383. tls >= "0.12.0"
  384. toc
  385. topojson
  386. topojsone
  387. transept
  388. type_eq
  389. type_id
  390. typebeat
  391. typeid >= "1.0.1"
  392. tyxml >= "4.0.0"
  393. tyxml-jsx
  394. tyxml-ppx >= "4.3.0"
  395. tyxml-syntax
  396. ulid
  397. universal-portal
  398. unix-dirent
  399. unix-errno >= "0.3.0"
  400. unix-fcntl >= "0.3.0"
  401. unix-sys-resource
  402. unix-sys-stat
  403. unix-time
  404. unstrctrd
  405. uspf
  406. uspf-lwt
  407. uspf-mirage
  408. uspf-unix
  409. utop >= "2.13.0"
  410. validate
  411. validator
  412. vercel
  413. vpnkit
  414. wcwidth
  415. websocketaf
  416. x509 >= "0.7.0"
  417. xapi-rrd >= "1.8.2"
  418. xapi-stdext-date
  419. xapi-stdext-encodings < "4.20.0"
  420. xapi-stdext-std >= "4.16.0"
  421. yaml < "3.2.0"
  422. yaml-sexp
  423. yocaml < "2.0.0"
  424. yocaml_syndication = "2.0.0"
  425. yocaml_yaml < "2.0.0"
  426. yuscii >= "0.2.0"
  427. zar
  428. zed >= "3.2.2"

Conflicts

None

OCaml

Innovation. Community. Security.