package alcotest

  1. Overview
  2. No Docs
Alcotest is a lightweight and colourful test framework

Install

dune-project
 Dependency

Authors

Maintainers

Sources

alcotest-1.9.1.tbz
sha256=1e29c3b41d4329062105b723dfda3aff86b8cef5e7c7500d0e491fc5fd78e482
sha512=c49d402fa636dcf11f81917610dd1d2eca8606c8919aede4db23710d071f6046a8f93c78de9fbfee26637a53ca67f71fad500bfa2478b7f0f059608a492dd0a5

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: 01 Oct 2025

Dependencies (9)

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

Dev Dependencies (1)

  1. odoc with-doc

  1. ahrocksdb
  2. albatross >= "1.5.4"
  3. alcobar
  4. alcotest-async >= "1.9.1"
  5. alcotest-js >= "1.9.1"
  6. alcotest-lwt >= "1.9.1"
  7. alcotest-mirage >= "1.9.1"
  8. alg_structs_qcheck
  9. algaeff
  10. ambient-context
  11. ambient-context-eio
  12. ambient-context-lwt
  13. angstrom >= "0.7.0"
  14. ansi >= "0.6.0"
  15. anycache >= "0.7.4"
  16. anycache-async
  17. anycache-lwt
  18. arc
  19. archetype >= "1.4.2"
  20. archi
  21. arp
  22. arrakis < "1.1.0"
  23. art
  24. asai
  25. asak >= "0.2"
  26. asli >= "0.2.0"
  27. asn1-combinators >= "0.2.5"
  28. atd >= "2.3.3"
  29. atdgen >= "2.10.0"
  30. atdpy
  31. atdts
  32. avro-simple
  33. backoff
  34. base32
  35. base64 >= "2.1.2" & < "3.2.0" | >= "3.4.0"
  36. bastet
  37. bastet_lwt
  38. bech32
  39. bechamel >= "0.5.0"
  40. bigarray-overlap
  41. bigstringaf
  42. biotk >= "0.4"
  43. bitlib
  44. blake2
  45. bloomf
  46. bls12-381 < "0.4.1" | >= "3.0.0" & < "18.0"
  47. bls12-381-hash
  48. bls12-381-js >= "0.4.2"
  49. bls12-381-js-gen >= "0.4.2"
  50. bls12-381-legacy
  51. bls12-381-signature
  52. bls12-381-unix
  53. blurhash
  54. brisk-reconciler
  55. builder-web
  56. bytebuffer
  57. ca-certs
  58. ca-certs-nss
  59. cachet
  60. cachet-lwt
  61. cachet-solo5
  62. cactus
  63. caldav
  64. calendar >= "3.0.0"
  65. calendars >= "2.0.0"
  66. callipyge
  67. camlix
  68. camlkit
  69. camlkit-base
  70. capnp-rpc
  71. capnp-rpc-unix
  72. caqti >= "1.7.0"
  73. caqti-async >= "1.7.0"
  74. caqti-driver-mariadb >= "1.7.0"
  75. caqti-driver-postgresql >= "1.7.0"
  76. caqti-driver-sqlite3 >= "1.7.0"
  77. caqti-dynload >= "2.0.1"
  78. caqti-eio
  79. caqti-lwt >= "1.7.0"
  80. caqti-miou
  81. carray
  82. carton < "1.0.0"
  83. carton-git
  84. carton-lwt >= "0.4.3" & < "1.0.0"
  85. catala >= "0.6.0"
  86. cborl
  87. cf-lwt
  88. chacha
  89. chamelon
  90. chamelon-unix
  91. charrua-client
  92. charrua-server
  93. checked_oint
  94. checkseum >= "0.0.3"
  95. cid
  96. clarity-lang
  97. class_group_vdf
  98. cohttp
  99. cohttp-curl-async
  100. cohttp-curl-lwt
  101. cohttp-eio >= "6.0.0~beta2"
  102. colombe >= "0.2.0"
  103. color
  104. commons
  105. conan
  106. conan-cli
  107. conan-database
  108. conan-lwt
  109. conan-unix
  110. conex < "0.10.0"
  111. conex-mirage-crypto
  112. conformist
  113. cookie
  114. corosync
  115. cow >= "2.2.0"
  116. crockford
  117. css
  118. css-parser
  119. cstruct
  120. cstruct-sexp
  121. ctypes-zarith
  122. cuid
  123. cure2
  124. curly
  125. current
  126. current-albatross-deployer
  127. current_git >= "0.7.1"
  128. current_incr
  129. current_rpc >= "0.7.4"
  130. data-encoding
  131. dates_calc
  132. dbase4
  133. decimal >= "0.3.0"
  134. decompress
  135. depyt
  136. digestif >= "0.9.0"
  137. dispatch >= "0.4.1"
  138. dkim
  139. dkim-bin
  140. dkim-mirage
  141. dkml-dune-dsl-show
  142. dkml-install
  143. dkml-install-installer
  144. dkml-install-runner
  145. dmarc
  146. dns >= "4.4.1"
  147. dns-cli
  148. dns-client >= "4.6.3"
  149. dns-forward-lwt-unix
  150. dns-resolver
  151. dns-server
  152. dns-tsig
  153. dnssd
  154. dnssec
  155. dockerfile >= "8.2.7"
  156. dockerfile-opam >= "8.3.4"
  157. domain-local-await >= "0.2.1"
  158. domain-local-timeout
  159. domain-name
  160. dream
  161. dream-htmx
  162. dream-pure
  163. dscheck >= "0.1.1"
  164. duff
  165. dune-deps >= "1.4.0"
  166. dune-release >= "1.0.0"
  167. duration
  168. echo
  169. eio < "0.12"
  170. eio_linux
  171. eio_windows
  172. emile
  173. encore
  174. eqaf >= "0.5"
  175. equinoxe
  176. equinoxe-cohttp
  177. equinoxe-hlc
  178. ezgzip
  179. ezjsonm
  180. ezjsonm-lwt
  181. FPauth
  182. FPauth-core
  183. FPauth-responses
  184. FPauth-strategies
  185. faraday != "0.2.0"
  186. farfadet
  187. fat-filesystem
  188. fehu < "1.0.0~alpha3"
  189. ff
  190. ff-pbt
  191. flex-array
  192. flux
  193. fluxt
  194. forester >= "5.0"
  195. fsevents-lwt
  196. functoria
  197. fungi
  198. geojson
  199. geoml >= "0.1.1"
  200. git
  201. git-cohttp
  202. git-cohttp-unix
  203. git-kv != "0.1.3"
  204. git-mirage
  205. git-net
  206. git-split
  207. git-unix
  208. gitlab-unix
  209. glicko2
  210. gmap
  211. gobba
  212. gpt
  213. graphql
  214. graphql-async
  215. graphql-cohttp >= "0.13.0"
  216. graphql-lwt
  217. graphql_parser != "0.11.0"
  218. graphql_ppx
  219. guardian >= "0.4.0"
  220. h1
  221. h1_parser
  222. h2
  223. hacl
  224. hacl-star >= "0.6.0"
  225. hacl_func
  226. hacl_x25519
  227. handlebars-ml >= "0.2.1"
  228. highlexer
  229. hkdf
  230. hockmd
  231. html_of_jsx
  232. http
  233. http-multipart-formdata < "2.0.0"
  234. httpaf >= "0.2.0"
  235. httpcats
  236. httpun
  237. httpun-ws
  238. hugin < "1.0.0~alpha3"
  239. huml
  240. hvsock
  241. icalendar
  242. idna
  243. imagelib
  244. index
  245. inferno >= "20220603"
  246. influxdb-async
  247. influxdb-lwt
  248. inquire < "0.2.0"
  249. intel_hex >= "0.3"
  250. interval-map
  251. iomux
  252. irmin
  253. irmin-bench
  254. irmin-chunk
  255. irmin-cli
  256. irmin-containers
  257. irmin-fs
  258. irmin-git
  259. irmin-graphql
  260. irmin-pack
  261. irmin-pack-tools
  262. irmin-test != "3.6.1"
  263. irmin-tezos
  264. irmin-unix
  265. irmin-watcher
  266. jekyll-format
  267. jose
  268. json-data-encoding >= "0.9"
  269. json-data-encoding-bson >= "1.1.1"
  270. json_decoder
  271. jsonfeed
  272. jsonxt
  273. junit_alcotest >= "2.2.0"
  274. jwto
  275. kaun < "1.0.0~alpha3"
  276. kcas >= "0.6.0"
  277. kcas_data >= "0.6.0"
  278. kdf
  279. ke >= "0.2"
  280. kkmarkdown
  281. kmt
  282. lambda-runtime
  283. lambda_streams
  284. lambda_streams_async
  285. lambdapi
  286. layoutz
  287. letters
  288. liquid_ml >= "0.1.3"
  289. lmdb >= "1.0"
  290. lockfree >= "0.3.1"
  291. logical
  292. logtk >= "1.6"
  293. lp
  294. lp-glpk
  295. lp-glpk-js < "0.5.0"
  296. lp-gurobi < "0.5.0"
  297. lru
  298. lt-code
  299. luv
  300. mazeppa
  301. mbr-format
  302. mdx >= "1.6.0"
  303. mec
  304. mechaml >= "1.2.1"
  305. mel-bastet
  306. merlin = "4.17.1-501"
  307. merlin-lib >= "4.17.1-501"
  308. metrics
  309. middleware
  310. mimic
  311. minicaml = "0.3.1" | >= "0.4"
  312. mirage >= "4.0.0"
  313. mirage-block-partition
  314. mirage-block-ramdisk
  315. mirage-channel >= "4.0.1"
  316. mirage-crypto-ec
  317. mirage-flow-unix
  318. mirage-kv >= "2.0.0"
  319. mirage-kv-mem >= "4.0.1"
  320. mirage-kv-unix >= "3.0.0"
  321. mirage-logs
  322. mirage-nat
  323. mirage-net-unix
  324. mirage-runtime < "4.7.0"
  325. mirage-tc
  326. mjson
  327. mlgpx
  328. mmdb < "0.3.0"
  329. mnd
  330. mqtt
  331. mrmime >= "0.2.0"
  332. msgpck >= "1.6"
  333. mssql >= "2.0.3"
  334. multibase
  335. multicore-magic
  336. multihash
  337. multihash-digestif
  338. multipart-form-data
  339. multipart_form
  340. multipart_form-eio
  341. multipart_form-lwt
  342. multipart_form-miou
  343. named-pipe
  344. nanoid
  345. nbd >= "4.0.3"
  346. nbd-tool
  347. neo4j_bolt
  348. nloge
  349. nocoiner
  350. non_empty_list
  351. nx < "1.0.0~alpha3"
  352. nx-datasets
  353. nx-text
  354. OCADml >= "0.6.0"
  355. obatcher
  356. ocaml-index < "5.4.1-503"
  357. ocaml-r >= "0.4.0"
  358. ocaml-version >= "3.5.0"
  359. ocamlformat >= "0.13.0" & < "0.25.1"
  360. ocamlformat-lib
  361. ocamlformat-mlx-lib
  362. ocamlformat-rpc < "removed"
  363. ocamline
  364. ocluster
  365. ocue
  366. odoc < "2.1.1"
  367. oenv >= "0.1.0"
  368. ohex
  369. oidc
  370. oktree >= "0.2.4"
  371. opam-0install
  372. opam-0install-cudf >= "0.5.0"
  373. opam-compiler
  374. opam-file-format >= "2.1.1"
  375. opam-repomin
  376. opencage
  377. opentelemetry >= "0.6"
  378. opentelemetry-client
  379. opentelemetry-client-cohttp-eio
  380. opentelemetry-client-cohttp-lwt >= "0.6"
  381. opentelemetry-client-ocurl >= "0.6"
  382. opentelemetry-client-ocurl-lwt
  383. opentelemetry-cohttp-lwt >= "0.6"
  384. opentelemetry-logs
  385. opentelemetry-lwt >= "0.6"
  386. opium
  387. opium-graphql
  388. opium-testing
  389. opium_kernel
  390. orewa
  391. orgeat
  392. ortac-core
  393. ortac-wrapper
  394. osnap < "0.3.0"
  395. osx-acl
  396. osx-attr
  397. osx-cf
  398. osx-fsevents
  399. osx-membership
  400. osx-mount
  401. osx-xattr
  402. otoggl
  403. owl >= "0.7.0" & != "0.9.0" & != "1.0.0"
  404. owl-base < "0.5.0"
  405. owl-ode >= "0.1.0" & != "0.2.0"
  406. owl-symbolic
  407. par_incr
  408. parseff
  409. passe
  410. passmaker
  411. patch
  412. pbkdf
  413. pecu >= "0.2"
  414. pf-qubes
  415. pg_query >= "0.9.6"
  416. pgx >= "1.0"
  417. pgx_unix >= "1.0"
  418. pgx_value_core
  419. pgx_value_ptime
  420. phylogenetics
  421. piaf
  422. picos < "0.5.0"
  423. picos_meta
  424. piece_rope
  425. plebeia >= "2.0.0"
  426. polyglot
  427. polymarket
  428. polynomial
  429. ppx_blob >= "0.3.0"
  430. ppx_catch
  431. ppx_deriving_cmdliner
  432. ppx_deriving_ezjsonm
  433. ppx_deriving_qcheck
  434. ppx_deriving_rpc
  435. ppx_deriving_yaml
  436. ppx_inline_alcotest
  437. ppx_map
  438. ppx_marshal
  439. ppx_mica
  440. ppx_parser
  441. ppx_protocol_conv >= "5.0.0"
  442. ppx_protocol_conv_json >= "5.0.0"
  443. ppx_protocol_conv_jsonm >= "5.0.0"
  444. ppx_protocol_conv_msgpack >= "5.0.0"
  445. ppx_protocol_conv_xml_light >= "5.0.0"
  446. ppx_protocol_conv_xmlm
  447. ppx_protocol_conv_yaml >= "5.0.0"
  448. ppx_repr
  449. ppx_subliner
  450. ppx_units
  451. ppx_yojson >= "1.1.0"
  452. pratter
  453. prbnmcn-ucb1 >= "0.0.2"
  454. prc
  455. preface
  456. pretty_expressive
  457. prettym
  458. proc-smaps
  459. producer
  460. progress
  461. prom
  462. prometheus < "1.2"
  463. prometheus-app
  464. protocell
  465. protocol-9p < "0.11.0" | >= "0.11.2"
  466. protocol-9p-unix
  467. proton
  468. psq
  469. public-suffix
  470. purl
  471. pxshot
  472. pyast
  473. qcaml
  474. qcheck >= "0.25"
  475. qcheck-alcotest
  476. qcheck-core >= "0.25"
  477. qcow-stream >= "0.13.0"
  478. qcow-tool >= "0.13.0"
  479. qcow-types >= "0.13.0"
  480. qdrant
  481. query-json
  482. quickjs
  483. quill < "1.0.0~alpha3"
  484. randii
  485. reason-standard
  486. red-black-tree
  487. reparse >= "2.0.0" & < "3.0.0"
  488. reparse-unix < "2.1.0"
  489. resp
  490. resp-unix >= "0.10.0"
  491. resto >= "0.9"
  492. rfc1951 < "1.0.0"
  493. routes < "2.0.0"
  494. rpc
  495. rpclib
  496. rpclib-async
  497. rpclib-lwt
  498. rpmfile < "0.3.0"
  499. rpmfile-eio
  500. rpmfile-unix
  501. rune < "1.0.0~alpha3"
  502. runtime_events_tools >= "0.5.2"
  503. SZXX >= "4.0.0"
  504. saga
  505. salsa20
  506. salsa20-core
  507. sanddb >= "0.2"
  508. saturn != "0.4.1"
  509. saturn_lockfree != "0.4.1"
  510. scrypt-kdf
  511. secp256k1 >= "0.4.1"
  512. secp256k1-internal
  513. semver >= "0.2.1"
  514. sendmail
  515. sendmail-lwt
  516. sendmail-miou-unix
  517. sendmail-mirage
  518. sendmsg
  519. seqes
  520. server-reason-react
  521. session-cookie
  522. session-cookie-async
  523. session-cookie-lwt
  524. shakuhachi
  525. sherlodoc
  526. sihl < "0.2.0"
  527. sihl-type
  528. slug
  529. smaws-clients
  530. smaws-lib
  531. smol
  532. smol-helpers
  533. sodium-fmt
  534. solidity-alcotest
  535. sowilo < "1.0.0~alpha3"
  536. spdx_licenses
  537. spectrum >= "0.2.0"
  538. spectrum_capabilities
  539. spectrum_palette_ppx
  540. spectrum_palettes
  541. spectrum_tools
  542. spin >= "0.7.0"
  543. spurs < "0.1.1"
  544. squirrel
  545. ssh-agent
  546. ssl >= "0.6.0"
  547. starred_ml
  548. stramon-lib
  549. stringx
  550. styled-ppx
  551. swapfs
  552. symex >= "0.2"
  553. synchronizer >= "0.2"
  554. syslog-rfc5424
  555. tabr
  556. talon < "1.0.0~alpha3"
  557. tar-mirage
  558. tcpip
  559. tdigest < "2.1.0"
  560. term-indexing
  561. term-tools
  562. terminal
  563. terminal_size >= "0.1.1"
  564. terminus
  565. terminus-cohttp
  566. terminus-hlc
  567. terml
  568. testo
  569. testo-lwt
  570. textmate-language >= "0.3.0"
  571. textrazor
  572. thread-table
  573. timedesc
  574. timere
  575. timmy
  576. timmy-jsoo
  577. timmy-lwt
  578. timmy-unix
  579. tls >= "0.12.8"
  580. toc
  581. topojson
  582. topojsone
  583. trail
  584. traits
  585. transept
  586. tsort >= "2.2.0"
  587. twostep
  588. type_eq
  589. type_id
  590. typeid >= "1.0.1"
  591. tyre >= "0.4"
  592. tyxml >= "4.2.0"
  593. tyxml-jsx
  594. tyxml-ppx >= "4.3.0"
  595. tyxml-syntax
  596. uecc
  597. ulid
  598. universal-portal
  599. unix-dirent
  600. unix-errno
  601. unix-sys-resource
  602. unix-sys-stat
  603. unix-time
  604. unstrctrd
  605. uring < "0.4"
  606. user-agent-parser
  607. uspf
  608. uspf-lwt
  609. uspf-mirage
  610. uspf-unix
  611. utcp
  612. utop >= "2.13.0"
  613. validate
  614. validator
  615. vercel
  616. vhd-format-lwt >= "0.13.0"
  617. wayland >= "2.0"
  618. wcwidth
  619. websocketaf
  620. x509 >= "0.7.0"
  621. xapi-rrd
  622. xapi-stdext-date
  623. xapi-stdext-encodings
  624. xapi-stdext-std >= "4.16.0"
  625. xdge
  626. xkbcommon
  627. yaml
  628. yaml-sexp
  629. yocaml
  630. yocaml_syndication >= "2.0.0"
  631. yocaml_yaml < "2.0.0"
  632. yojson >= "1.6.0"
  633. yojson-five
  634. yuscii >= "0.3.0"
  635. yuujinchou >= "1.0.0"
  636. zar
  637. zed >= "3.2.2"
  638. zlist < "0.4.0"

Conflicts (2)

  1. js_of_ocaml-compiler < "5.8"
  2. result < "1.5"