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: 24 Jun 2022

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 >= "2.8"

Reverse Dependencies (507)

  1. ahrocksdb
  2. albatross >= "1.5.0"
  3. alcotest-async < "1.0.0" | = "1.6.0"
  4. alcotest-js = "1.6.0"
  5. alcotest-lwt < "1.0.0" | = "1.6.0"
  6. alcotest-mirage = "1.6.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-parser
  101. cstruct >= "3.3.0"
  102. cstruct-sexp
  103. ctypes-zarith
  104. cuid
  105. curly
  106. current >= "0.4"
  107. current-albatross-deployer
  108. current_git >= "0.6.4"
  109. current_incr
  110. cwe_checker
  111. data-encoding
  112. datakit >= "0.12.0"
  113. datakit-bridge-github >= "0.12.0"
  114. datakit-ci
  115. datakit-client-git >= "0.12.0"
  116. dates_calc
  117. decimal >= "0.3.0"
  118. decompress >= "0.8"
  119. depyt
  120. digestif >= "0.8.1"
  121. dirsp-exchange-kbb2017
  122. dirsp-proscript-mirage
  123. dirsp-ps2ocaml
  124. dispatch >= "0.4.1"
  125. dkim
  126. dkim-bin
  127. dkim-mirage
  128. dkml-dune-dsl-show
  129. dkml-install
  130. dkml-install-installer
  131. dkml-install-runner
  132. dkml-package-console
  133. dns >= "4.0.0"
  134. dns-cli
  135. dns-client >= "4.6.0"
  136. dns-forward < "0.9.0"
  137. dns-forward-lwt-unix
  138. dns-resolver
  139. dns-server
  140. dns-tsig
  141. dnssd
  142. dnssec
  143. dog < "0.2.1"
  144. domain-name
  145. dream
  146. dream-htmx
  147. dream-pure
  148. dscheck >= "0.1.1"
  149. duff
  150. dune-release >= "1.0.0"
  151. duration >= "0.1.1"
  152. eio
  153. eio_linux
  154. emile
  155. encore
  156. eqaf >= "0.5"
  157. equinoxe
  158. equinoxe-cohttp
  159. equinoxe-hlc
  160. eris
  161. eris-lwt
  162. ezgzip
  163. ezjsonm >= "0.4.2"
  164. ezjsonm-lwt
  165. FPauth
  166. FPauth-core
  167. FPauth-responses
  168. FPauth-strategies
  169. faraday != "0.2.0"
  170. farfadet
  171. fat-filesystem >= "0.12.0"
  172. ff
  173. ff-pbt
  174. flex-array
  175. fsevents-lwt
  176. functoria >= "2.2.0"
  177. functoria-runtime >= "2.2.0" & < "3.0.1" | = "3.1.2"
  178. geojson
  179. geoml >= "0.1.1"
  180. git = "1.4.10" | = "1.5.0" | >= "1.5.2" & != "1.10.0"
  181. git-cohttp
  182. git-cohttp-mirage
  183. git-cohttp-unix
  184. git-mirage
  185. git-unix >= "1.10.0" & != "2.1.0"
  186. gitlab-unix
  187. glicko2
  188. gmap >= "0.3.0"
  189. gobba
  190. graphql
  191. graphql-async
  192. graphql-cohttp >= "0.13.0"
  193. graphql-lwt
  194. graphql_parser != "0.11.0"
  195. graphql_ppx >= "0.7.1"
  196. h1_parser
  197. h2
  198. hacl
  199. hacl-star >= "0.6.0"
  200. hacl_func
  201. hacl_x25519 >= "0.2.0"
  202. hkdf
  203. hockmd
  204. http
  205. http-multipart-formdata < "2.0.0"
  206. httpaf >= "0.2.0"
  207. hvsock
  208. icalendar >= "0.1.4"
  209. imagelib >= "20200929"
  210. index
  211. inferno >= "20220603"
  212. influxdb-async
  213. influxdb-lwt
  214. inquire < "0.2.0"
  215. interval-map
  216. iomux
  217. irmin < "0.8.0" | >= "0.9.6" & != "0.11.1" & < "1.0.0" | >= "2.0.0" & != "2.3.0"
  218. irmin-bench >= "2.7.0"
  219. irmin-chunk < "1.3.0" | >= "2.3.0"
  220. irmin-cli
  221. irmin-containers
  222. irmin-fs < "1.3.0" | >= "2.3.0"
  223. irmin-git < "2.0.0" | >= "2.3.0"
  224. irmin-graphql >= "2.3.0"
  225. irmin-http < "2.0.0"
  226. irmin-mem < "1.3.0" | >= "2.3.0"
  227. irmin-pack >= "2.4.0" & != "2.6.1"
  228. irmin-test >= "2.2.0" & < "3.4.0"
  229. irmin-tezos
  230. irmin-tezos-utils
  231. irmin-unix >= "1.0.0" & < "1.3.3" | >= "2.4.0" & != "2.6.1"
  232. irmin-watcher != "0.3.0"
  233. jekyll-format
  234. jerboa
  235. jitsu
  236. jose
  237. json-data-encoding >= "0.9"
  238. json_decoder
  239. jsonxt
  240. junit_alcotest
  241. jwto
  242. ke >= "0.2"
  243. kkmarkdown
  244. kmt
  245. lambda-runtime
  246. lambda_streams
  247. lambda_streams_async
  248. lambdapi >= "2.0.0"
  249. lambdoc >= "1.0-beta4"
  250. ledgerwallet-tezos >= "0.2.1"
  251. letters
  252. lmdb >= "1.0"
  253. lockfree >= "0.3.0"
  254. logical
  255. logtk >= "1.6"
  256. lp
  257. lp-glpk
  258. lp-glpk-js
  259. lp-gurobi
  260. lru
  261. lt-code
  262. luv
  263. mbr-format >= "1.0.0"
  264. mdx >= "1.6.0"
  265. mec
  266. mechaml = "1.0.0" | >= "1.2.1"
  267. merge-queues >= "0.2.0"
  268. merge-ropes >= "0.2.0"
  269. metrics
  270. mimic
  271. minicaml = "0.3.1" | >= "0.4"
  272. mirage >= "4.0.0~beta1"
  273. mirage-block-partition
  274. mirage-block-ramdisk = "0.3"
  275. mirage-channel >= "4.0.0"
  276. mirage-channel-lwt < "3.1.0"
  277. mirage-crypto-ec != "0.9.2"
  278. mirage-flow >= "1.0.2" & < "1.2.0"
  279. mirage-flow-unix != "1.3.0" & < "1.5.0" | = "2.0.0" | >= "3.0.0"
  280. mirage-fs-mem
  281. mirage-fs-unix >= "1.2.0" & < "1.4.1"
  282. mirage-kv >= "2.0.0"
  283. mirage-kv-mem
  284. mirage-logs >= "0.3.0"
  285. mirage-nat
  286. mirage-net-unix >= "2.3.0"
  287. mirage-runtime >= "4.0.0~beta1"
  288. mirage-tc
  289. mirage-vnetif-stack
  290. mmdb < "0.3.0"
  291. mnd
  292. monocypher
  293. mrmime >= "0.2.0"
  294. mrt-format
  295. msgpck >= "1.6"
  296. mssql >= "2.0.3"
  297. multibase
  298. multihash
  299. multihash-digestif
  300. multipart-form-data
  301. multipart_form
  302. multipart_form-lwt
  303. named-pipe
  304. nanoid
  305. nbd >= "4.0.3"
  306. nbd-tool
  307. nocoiner
  308. non_empty_list
  309. ocaml-r >= "0.4.0"
  310. ocaml-version >= "3.1.0"
  311. ocamlformat >= "0.13.0" & != "0.19.0~4.13preview" & < "0.25.1"
  312. ocamlformat-lib
  313. ocamlformat-rpc
  314. ocamline
  315. ocluster
  316. odoc >= "1.4.0" & < "2.1.0"
  317. oidc
  318. opam-0install
  319. opam-compiler
  320. opam-file-format >= "2.1.1"
  321. opium >= "0.15.0"
  322. opium-graphql
  323. opium-testing
  324. opium_kernel
  325. orewa
  326. orgeat
  327. osnap < "0.3.0"
  328. osx-acl
  329. osx-attr
  330. osx-cf
  331. osx-fsevents
  332. osx-membership
  333. osx-mount
  334. osx-xattr
  335. otoggl
  336. owl >= "0.6.0" & != "0.9.0" & != "1.0.0"
  337. owl-base < "0.5.0"
  338. owl-ode >= "0.1.0" & != "0.2.0"
  339. owl-symbolic
  340. passmaker
  341. patch
  342. pbkdf
  343. pecu >= "0.2"
  344. pf-qubes
  345. pg_query >= "0.9.6"
  346. pgx >= "1.0"
  347. pgx_unix >= "1.0"
  348. pgx_value_core
  349. pgx_value_ptime
  350. phylogenetics
  351. piaf
  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"
Alcotest is a lightweight and colourful test framework

Install

Authors

Maintainers

Sources

alcotest-1.6.0.tbz
sha256=fd00f9668395874ff3b1d7ef566d14efc02fa7dd34123eb25d59355be94b2329
sha512=69a7ef300ba10a9ccb1e25b1cfdb0a0abf9ca976864a52a22f0e1fae1e5d1cbeb99498c086230b839ee9da4d0fd71e63686e126ca42221537f3fdb6f6c5aae95