Alcotest is a lightweight and colourful test framework

Install

Authors

Maintainers

Sources

alcotest-1.7.0.tbz
sha256=812bacdb34b45e88995e07d7306bdab2f72479ef1996637f1d5d1f41667902df
sha512=4ae1ba318949ec9db8b87bc8072632a02f0e4003a95ab21e474f5c34c3b5bde867b0194a2d0ea7d9fc4580c70a30ca39287d33a8c134acc7611902f79c7b7ce8

Description

Alcotest exposes simple interface to perform unit tests. It exposes a simple TESTABLE module type, a check function to assert test predicates and a run function to perform a list of unit -> unit test callbacks.

Alcotest provides 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: 27 Feb 2023

Dependencies (9)

  1. ocaml-syntax-shims
  2. uutf >= "1.0.1"
  3. stdlib-shims
  4. re >= "1.7.2"
  5. cmdliner >= "1.1.0"
  6. astring
  7. fmt >= "0.8.7"
  8. ocaml >= "4.05.0"
  9. dune >= "3.0"

Dev Dependencies (1)

  1. odoc with-doc

Used by (509)

  1. ahrocksdb
  2. albatross >= "1.5.0"
  3. alcotest-async < "1.0.0" | >= "1.7.0"
  4. alcotest-js >= "1.7.0"
  5. alcotest-lwt < "1.0.0" | >= "1.7.0"
  6. alcotest-mirage >= "1.7.0"
  7. alg_structs_qcheck
  8. algaeff
  9. angstrom >= "0.7.0"
  10. ansi >= "0.6.0"
  11. anycache >= "0.7.4"
  12. anycache-async
  13. anycache-lwt
  14. archi
  15. arp != "2.3.1"
  16. arp-mirage < "2.0.0"
  17. art
  18. asak >= "0.2"
  19. asli >= "0.2.0"
  20. asn1-combinators >= "0.2.2"
  21. atd >= "2.3.3"
  22. atdgen >= "2.10.0"
  23. atdpy
  24. atdts
  25. base32
  26. base64 >= "2.1.2" & < "3.2.0" | >= "3.4.0"
  27. bastet
  28. bastet_lwt
  29. bech32
  30. bigarray-overlap
  31. bigstringaf
  32. bitlib
  33. blake2
  34. bloomf
  35. bls12-381 < "0.4.1" | >= "3.0.0"
  36. bls12-381-hash
  37. bls12-381-js >= "0.4.2"
  38. bls12-381-js-gen >= "0.4.2"
  39. bls12-381-legacy
  40. bls12-381-signature
  41. bls12-381-unix
  42. builder-web
  43. bulletml
  44. bytebuffer
  45. ca-certs
  46. ca-certs-nss
  47. cactus
  48. caldav
  49. calendar >= "3.0.0"
  50. callipyge
  51. camlix
  52. capnp-rpc
  53. capnp-rpc-lwt < "0.3"
  54. capnp-rpc-mirage >= "0.9.0"
  55. capnp-rpc-unix >= "0.9.0"
  56. caqti >= "1.7.0"
  57. caqti-async >= "1.7.0"
  58. caqti-driver-mariadb >= "1.7.0"
  59. caqti-driver-postgresql >= "1.7.0"
  60. caqti-driver-sqlite3 >= "1.7.0"
  61. caqti-lwt >= "1.7.0"
  62. carray
  63. carton
  64. carton-git
  65. carton-lwt >= "0.4.1"
  66. catala >= "0.6.0"
  67. cborl
  68. ccss >= "1.6"
  69. cf-lwt
  70. chacha
  71. chamelon
  72. chamelon-unix
  73. channel
  74. charrua-client
  75. charrua-client-lwt
  76. charrua-client-mirage < "0.11.0"
  77. charrua-server >= "1.4.1"
  78. checkseum >= "0.0.3"
  79. cid
  80. clarity-lang
  81. class_group_vdf
  82. cohttp >= "0.17.0"
  83. cohttp-curl-async
  84. cohttp-curl-lwt
  85. colombe >= "0.2.0"
  86. color
  87. commons
  88. conan
  89. conan-cli
  90. conan-database
  91. conan-lwt
  92. conan-unix
  93. conduit = "3.0.0"
  94. conex < "0.10.0"
  95. conex-mirage-crypto
  96. conex-nocrypto
  97. conformist
  98. cookie
  99. cow >= "2.2.0"
  100. css
  101. css-parser
  102. cstruct >= "3.3.0"
  103. cstruct-sexp
  104. ctypes-zarith
  105. cuid
  106. curly
  107. current >= "0.4"
  108. current-albatross-deployer
  109. current_git >= "0.6.4"
  110. current_incr
  111. cwe_checker
  112. data-encoding
  113. datakit >= "0.12.0"
  114. datakit-bridge-github >= "0.12.0"
  115. datakit-ci
  116. datakit-client-git >= "0.12.0"
  117. dates_calc
  118. decimal >= "0.3.0"
  119. decompress >= "0.8"
  120. depyt
  121. digestif >= "0.8.1"
  122. dirsp-exchange-kbb2017
  123. dirsp-proscript-mirage
  124. dirsp-ps2ocaml
  125. dispatch >= "0.4.1"
  126. dkim
  127. dkim-bin
  128. dkim-mirage
  129. dkml-dune-dsl-show
  130. dkml-install
  131. dkml-install-installer
  132. dkml-install-runner
  133. dkml-package-console
  134. dns >= "4.0.0"
  135. dns-cli
  136. dns-client >= "4.6.0"
  137. dns-forward < "0.9.0"
  138. dns-forward-lwt-unix
  139. dns-resolver
  140. dns-server
  141. dns-tsig
  142. dnssd
  143. dnssec
  144. dog < "0.2.1"
  145. domain-name
  146. dream
  147. dream-htmx
  148. dream-pure
  149. dscheck >= "0.1.1"
  150. duff
  151. dune-release >= "1.0.0"
  152. duration >= "0.1.1"
  153. eio
  154. eio_linux
  155. emile
  156. encore
  157. eqaf >= "0.5"
  158. equinoxe
  159. equinoxe-cohttp
  160. equinoxe-hlc
  161. eris
  162. eris-lwt
  163. ezgzip
  164. ezjsonm >= "0.4.2"
  165. ezjsonm-lwt
  166. FPauth
  167. FPauth-core
  168. FPauth-responses
  169. FPauth-strategies
  170. faraday != "0.2.0"
  171. farfadet
  172. fat-filesystem >= "0.12.0"
  173. ff
  174. ff-pbt
  175. flex-array
  176. fsevents-lwt
  177. functoria >= "2.2.0"
  178. functoria-runtime >= "2.2.0" & < "3.0.1" | = "3.1.2"
  179. geojson
  180. geoml >= "0.1.1"
  181. git = "1.4.10" | = "1.5.0" | >= "1.5.2" & != "1.10.0"
  182. git-cohttp
  183. git-cohttp-mirage
  184. git-cohttp-unix
  185. git-mirage
  186. git-unix >= "1.10.0" & != "2.1.0"
  187. gitlab-unix
  188. glicko2
  189. gmap >= "0.3.0"
  190. gobba
  191. graphql
  192. graphql-async
  193. graphql-cohttp >= "0.13.0"
  194. graphql-lwt
  195. graphql_parser != "0.11.0"
  196. graphql_ppx >= "0.7.1"
  197. h1_parser
  198. h2
  199. hacl
  200. hacl-star >= "0.6.0"
  201. hacl_func
  202. hacl_x25519 >= "0.2.0"
  203. hkdf
  204. hockmd
  205. http
  206. http-multipart-formdata < "2.0.0"
  207. httpaf >= "0.2.0"
  208. hvsock
  209. icalendar >= "0.1.4"
  210. imagelib >= "20200929"
  211. index
  212. inferno >= "20220603"
  213. influxdb-async
  214. influxdb-lwt
  215. inquire < "0.2.0"
  216. interval-map
  217. iomux
  218. irmin < "0.8.0" | >= "0.9.6" & != "0.11.1" & < "1.0.0" | >= "2.0.0" & != "2.3.0"
  219. irmin-bench >= "2.7.0"
  220. irmin-chunk < "1.3.0" | >= "2.3.0"
  221. irmin-cli
  222. irmin-containers
  223. irmin-fs < "1.3.0" | >= "2.3.0"
  224. irmin-git < "2.0.0" | >= "2.3.0"
  225. irmin-graphql >= "2.3.0"
  226. irmin-http < "2.0.0"
  227. irmin-mem < "1.3.0" | >= "2.3.0"
  228. irmin-pack >= "2.4.0" & != "2.6.1"
  229. irmin-test >= "2.2.0" & < "3.4.0"
  230. irmin-tezos
  231. irmin-tezos-utils
  232. irmin-unix >= "1.0.0" & < "1.3.3" | >= "2.4.0" & != "2.6.1"
  233. irmin-watcher != "0.3.0"
  234. jekyll-format
  235. jerboa
  236. jitsu
  237. jose
  238. json-data-encoding >= "0.9"
  239. json_decoder
  240. jsonxt
  241. junit_alcotest
  242. jwto
  243. ke >= "0.2"
  244. kkmarkdown
  245. kmt
  246. lambda-runtime
  247. lambda_streams
  248. lambda_streams_async
  249. lambdapi >= "2.0.0"
  250. lambdoc >= "1.0-beta4"
  251. ledgerwallet-tezos >= "0.2.1"
  252. letters
  253. lmdb >= "1.0"
  254. lockfree >= "0.3.0"
  255. logical
  256. logtk >= "1.6"
  257. lp
  258. lp-glpk
  259. lp-glpk-js
  260. lp-gurobi
  261. lru
  262. lt-code
  263. luv
  264. mbr-format >= "1.0.0"
  265. mdx >= "1.6.0"
  266. mec
  267. mechaml = "1.0.0" | >= "1.2.1"
  268. merge-queues >= "0.2.0"
  269. merge-ropes >= "0.2.0"
  270. metrics
  271. mimic
  272. minicaml = "0.3.1" | >= "0.4"
  273. mirage >= "4.0.0~beta1"
  274. mirage-block-partition
  275. mirage-block-ramdisk = "0.3"
  276. mirage-channel >= "4.0.0"
  277. mirage-channel-lwt < "3.1.0"
  278. mirage-crypto-ec != "0.9.2"
  279. mirage-flow >= "1.0.2" & < "1.2.0"
  280. mirage-flow-unix != "1.3.0" & < "1.5.0" | = "2.0.0" | >= "3.0.0"
  281. mirage-fs-mem
  282. mirage-fs-unix >= "1.2.0" & < "1.4.1"
  283. mirage-kv >= "2.0.0"
  284. mirage-kv-mem
  285. mirage-logs >= "0.3.0"
  286. mirage-nat
  287. mirage-net-unix >= "2.3.0"
  288. mirage-runtime >= "4.0.0~beta1"
  289. mirage-tc
  290. mirage-vnetif-stack
  291. mmdb < "0.3.0"
  292. mnd
  293. monocypher
  294. mrmime >= "0.2.0"
  295. mrt-format
  296. msgpck >= "1.6"
  297. mssql >= "2.0.3"
  298. multibase
  299. multihash
  300. multihash-digestif
  301. multipart-form-data
  302. multipart_form
  303. multipart_form-lwt
  304. named-pipe
  305. nanoid
  306. nbd >= "4.0.3"
  307. nbd-tool
  308. nocoiner
  309. non_empty_list
  310. ocaml-r >= "0.4.0"
  311. ocaml-version >= "3.1.0"
  312. ocamlformat >= "0.13.0" & != "0.19.0~4.13preview" & < "0.25.1"
  313. ocamlformat-lib
  314. ocamlformat-rpc
  315. ocamline
  316. ocluster
  317. odoc >= "1.4.0" & < "2.1.0"
  318. oidc
  319. opam-0install
  320. opam-compiler
  321. opam-file-format >= "2.1.1"
  322. opium >= "0.15.0"
  323. opium-graphql
  324. opium-testing
  325. opium_kernel
  326. orewa
  327. orgeat
  328. osnap < "0.3.0"
  329. osx-acl
  330. osx-attr
  331. osx-cf
  332. osx-fsevents
  333. osx-membership
  334. osx-mount
  335. osx-xattr
  336. otoggl
  337. owl >= "0.6.0" & != "0.9.0" & != "1.0.0"
  338. owl-base < "0.5.0"
  339. owl-ode >= "0.1.0" & != "0.2.0"
  340. owl-symbolic
  341. passmaker
  342. patch
  343. pbkdf
  344. pecu >= "0.2"
  345. pf-qubes
  346. pg_query >= "0.9.6"
  347. pgx >= "1.0"
  348. pgx_unix >= "1.0"
  349. pgx_value_core
  350. pgx_value_ptime
  351. phylogenetics
  352. piaf
  353. piece_rope
  354. plebeia >= "2.0.0"
  355. polyglot
  356. polynomial
  357. ppx_blob >= "0.3.0"
  358. ppx_catch
  359. ppx_deriving_cmdliner
  360. ppx_deriving_qcheck
  361. ppx_deriving_rpc
  362. ppx_deriving_yaml
  363. ppx_graphql >= "0.2.0"
  364. ppx_inline_alcotest
  365. ppx_map
  366. ppx_protocol_conv >= "5.0.0"
  367. ppx_protocol_conv_json >= "5.0.0"
  368. ppx_protocol_conv_jsonm >= "5.0.0"
  369. ppx_protocol_conv_msgpack >= "5.0.0"
  370. ppx_protocol_conv_xml_light >= "5.0.0"
  371. ppx_protocol_conv_xmlm
  372. ppx_protocol_conv_yaml >= "5.0.0"
  373. ppx_repr
  374. ppx_subliner
  375. ppx_units
  376. ppx_yojson >= "1.1.0"
  377. pratter
  378. prbnmcn-ucb1 >= "0.0.2"
  379. prc
  380. preface
  381. prettym
  382. proc-smaps
  383. progress
  384. prom
  385. prometheus < "1.2"
  386. prometheus-app
  387. protocell
  388. protocol-9p >= "0.3" & < "0.11.0" | >= "0.11.2"
  389. protocol-9p-unix
  390. psq
  391. pyast
  392. qcheck >= "0.18"
  393. qcheck-alcotest
  394. qcheck-core >= "0.18"
  395. radis
  396. randii
  397. reason-standard
  398. reparse >= "2.0.0" & < "3.0.0"
  399. reparse-unix < "2.1.0"
  400. resp
  401. resp-unix >= "0.10.0"
  402. resto >= "0.9"
  403. rfc1951 < "1.0.0"
  404. routes < "2.0.0"
  405. rpc >= "7.1.0"
  406. rpclib >= "7.1.0"
  407. rpclib-async
  408. rpclib-lwt >= "7.1.0"
  409. rubytt
  410. salsa20
  411. salsa20-core
  412. sanddb >= "0.2"
  413. scaml >= "1.5.0"
  414. scrypt-kdf
  415. secp256k1 >= "0.4.1"
  416. secp256k1-internal
  417. sendmail
  418. sendmail-lwt
  419. sendmsg
  420. seqes
  421. session-cookie
  422. session-cookie-async
  423. session-cookie-lwt
  424. sihl < "0.2.0"
  425. sihl-type
  426. slug
  427. smol
  428. smol-helpers
  429. sodium-fmt
  430. solidity-alcotest
  431. spdx_licenses
  432. spectrum >= "0.2.0"
  433. spin >= "0.7.0"
  434. squirrel
  435. ssh-agent
  436. stramon-lib
  437. syslog-rfc5424
  438. tcpip >= "2.4.2" & < "3.4.2" | >= "6.2.0"
  439. tdigest < "2.1.0"
  440. terminal
  441. terminal_size >= "0.1.1"
  442. terminus
  443. terminus-cohttp
  444. terminus-hlc
  445. textmate-language >= "0.3.0"
  446. textrazor
  447. tezos-base-test-helpers
  448. tezos-bls12-381-polynomial
  449. tezos-client-base
  450. tezos-client-base-unix >= "13.0"
  451. tezos-crypto >= "8.0" & < "9.0" | >= "11.0" & < "12.0" | >= "13.0"
  452. tezos-crypto-dal
  453. tezos-error-monad >= "12.0"
  454. tezos-event-logging-test-helpers
  455. tezos-lmdb
  456. tezos-micheline = "13.0"
  457. tezos-plompiler = "0.1.3"
  458. tezos-plonk = "0.1.3"
  459. tezos-shell-services >= "13.0"
  460. tezos-signer-backends >= "8.0" & < "13.0"
  461. tezos-stdlib >= "8.0" & < "12.0" | >= "13.0"
  462. tezos-test-helpers
  463. tezos-version >= "13.0"
  464. tezos-webassembly-interpreter
  465. tftp
  466. timedesc
  467. timere
  468. tls >= "0.12.0"
  469. toc
  470. topojson
  471. topojsone
  472. traits
  473. transept
  474. twostep
  475. typebeat
  476. tyre >= "0.4"
  477. tyxml >= "4.0.0"
  478. tyxml-jsx
  479. tyxml-ppx >= "4.3.0"
  480. tyxml-syntax
  481. uecc
  482. ulid
  483. unix-dirent
  484. unix-errno >= "0.3.0"
  485. unix-fcntl >= "0.3.0"
  486. unix-sys-resource
  487. unix-sys-stat
  488. unix-time
  489. unstrctrd
  490. uring < "0.4"
  491. user-agent-parser
  492. uspf
  493. uspf-lwt
  494. uspf-unix
  495. validator
  496. vercel
  497. vpnkit
  498. websocketaf
  499. x509 >= "0.7.0"
  500. xapi-rrd >= "1.8.2"
  501. xapi-stdext-date
  502. xapi-stdext-encodings
  503. xapi-stdext-std >= "4.16.0"
  504. yaml
  505. yaml-sexp
  506. yojson >= "1.6.0"
  507. yuscii >= "0.3.0"
  508. yuujinchou >= "1.0.0"
  509. zlist < "0.4.0"

Conflicts (1)

  1. result < "1.5"