Alcotest is a lightweight and colourful test framework

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 (10)

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

Reverse Dependencies (507)

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

Conflicts (1)

  1. result < "1.5"

Install

Authors

Maintainers

Sources

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