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.1.tar.gz
sha256=a0e6c9a33c59b206ecc949655fa6e17bdd1078c8b610b14d8f6f0f1b489b0b43
md5=6ace09e1ae26e3da9f6f8c0dbc6b5f7c

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: 14 Apr 2015

Dependencies (6)

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