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

Conflicts (2)

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