Alcotest is a lightweight and colourful test framework

Install

Authors

Maintainers

Sources

alcotest-js-1.5.0.tbz
sha256=54281907e02d78995df246dc2e10ed182828294ad2059347a1e3a13354848f6c
sha512=1aea91de40795ec4f6603d510107e4b663c1a94bd223f162ad231316d8595e9e098cabbe28a46bdcb588942f3d103d8377373d533bcc7413ba3868a577469b45

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: 12 Oct 2021

Dependencies (9)

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

Dev Dependencies (2)

  1. odoc with-doc
  2. cmdliner with-test & < "1.1.0"

Used by (504)

  1. ahrocksdb
  2. albatross >= "1.5.0"
  3. alcotest-async < "1.0.0" | = "1.5.0"
  4. alcotest-js < "1.6.0"
  5. alcotest-lwt < "1.0.0" | = "1.5.0"
  6. alcotest-mirage = "1.5.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_async
  29. bastet_lwt
  30. bech32
  31. bigarray-overlap
  32. bigstringaf
  33. bitlib
  34. blake2
  35. bloomf
  36. bls12-381 < "0.4.1" | >= "3.0.0"
  37. bls12-381-hash
  38. bls12-381-js >= "0.4.2"
  39. bls12-381-js-gen >= "0.4.2"
  40. bls12-381-legacy
  41. bls12-381-signature
  42. bls12-381-unix
  43. builder-web
  44. bulletml
  45. bytebuffer
  46. ca-certs
  47. ca-certs-nss
  48. cactus
  49. caldav
  50. calendar >= "3.0.0"
  51. callipyge
  52. camlix
  53. capnp-rpc < "1.2.3"
  54. capnp-rpc-lwt < "0.3"
  55. capnp-rpc-mirage >= "0.9.0"
  56. capnp-rpc-unix >= "0.9.0" & < "1.2.3"
  57. caqti >= "1.7.0"
  58. caqti-async >= "1.7.0"
  59. caqti-driver-mariadb >= "1.7.0"
  60. caqti-driver-postgresql >= "1.7.0"
  61. caqti-driver-sqlite3 >= "1.7.0"
  62. caqti-lwt >= "1.7.0"
  63. carray
  64. carton
  65. carton-git
  66. carton-lwt >= "0.4.1"
  67. catala >= "0.6.0"
  68. cborl
  69. ccss >= "1.6"
  70. cf-lwt
  71. chacha
  72. chamelon
  73. chamelon-unix
  74. channel
  75. charrua-client
  76. charrua-client-lwt
  77. charrua-client-mirage < "0.11.0"
  78. charrua-server >= "1.4.1"
  79. checkseum >= "0.0.3"
  80. cid
  81. clarity-lang
  82. class_group_vdf
  83. cohttp >= "0.17.0"
  84. cohttp-curl-async
  85. cohttp-curl-lwt
  86. colombe >= "0.2.0"
  87. color
  88. commons
  89. conan
  90. conan-cli
  91. conan-database
  92. conan-lwt
  93. conan-unix
  94. conduit = "3.0.0"
  95. conex < "0.10.0"
  96. conex-mirage-crypto
  97. conex-nocrypto
  98. conformist
  99. cookie
  100. cow >= "2.2.0"
  101. css
  102. css-parser
  103. cstruct >= "3.3.0"
  104. cstruct-sexp
  105. ctypes-zarith
  106. cuid
  107. curly
  108. current >= "0.4"
  109. current-albatross-deployer
  110. current_git >= "0.6.4"
  111. current_incr
  112. cwe_checker
  113. data-encoding
  114. datakit >= "0.12.0"
  115. datakit-bridge-github >= "0.12.0"
  116. datakit-ci
  117. datakit-client-git >= "0.12.0"
  118. dates_calc
  119. decimal >= "0.3.0"
  120. decompress >= "0.8"
  121. depyt
  122. digestif >= "0.8.1"
  123. dirsp-exchange-kbb2017
  124. dirsp-proscript-mirage
  125. dirsp-ps2ocaml
  126. dispatch >= "0.4.1"
  127. dkim
  128. dkim-bin
  129. dkim-mirage
  130. dkml-dune-dsl-show
  131. dkml-install
  132. dkml-install-installer
  133. dkml-install-runner
  134. dkml-package-console
  135. dns >= "4.0.0"
  136. dns-cli
  137. dns-client >= "4.6.0"
  138. dns-forward < "0.9.0"
  139. dns-forward-lwt-unix
  140. dns-resolver
  141. dns-server
  142. dns-tsig
  143. dnssd
  144. dnssec
  145. dog < "0.2.1"
  146. domain-name
  147. dream
  148. dream-pure
  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. 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. plebeia >= "2.0.0"
  352. polyglot
  353. polynomial
  354. ppx_blob >= "0.3.0"
  355. ppx_deriving_cmdliner
  356. ppx_deriving_qcheck
  357. ppx_deriving_rpc
  358. ppx_deriving_yaml
  359. ppx_graphql >= "0.2.0"
  360. ppx_inline_alcotest
  361. ppx_protocol_conv >= "5.0.0"
  362. ppx_protocol_conv_json >= "5.0.0"
  363. ppx_protocol_conv_jsonm >= "5.0.0"
  364. ppx_protocol_conv_msgpack >= "5.0.0"
  365. ppx_protocol_conv_xml_light >= "5.0.0"
  366. ppx_protocol_conv_xmlm
  367. ppx_protocol_conv_yaml >= "5.0.0"
  368. ppx_repr
  369. ppx_subliner
  370. ppx_units
  371. ppx_yojson >= "1.1.0"
  372. pratter
  373. prbnmcn-ucb1 >= "0.0.2"
  374. prc
  375. preface
  376. prettym
  377. proc-smaps
  378. progress
  379. prom
  380. prometheus < "1.2"
  381. prometheus-app
  382. protocell
  383. protocol-9p >= "0.3" & < "0.11.0" | >= "0.11.2"
  384. protocol-9p-unix
  385. psq
  386. pyast
  387. qcheck >= "0.18"
  388. qcheck-alcotest
  389. qcheck-core >= "0.18"
  390. radis
  391. randii
  392. reason-standard
  393. reparse >= "2.0.0" & < "3.0.0"
  394. reparse-unix < "2.1.0"
  395. resp
  396. resp-unix >= "0.10.0"
  397. resto >= "0.8"
  398. rfc1951 < "1.0.0"
  399. routes < "2.0.0"
  400. rpc >= "7.1.0"
  401. rpclib >= "7.1.0"
  402. rpclib-async
  403. rpclib-lwt >= "7.1.0"
  404. rubytt
  405. salsa20
  406. salsa20-core
  407. sanddb >= "0.2"
  408. scaml >= "1.5.0"
  409. scrypt-kdf
  410. secp256k1 >= "0.4.1"
  411. secp256k1-internal
  412. sendmail
  413. sendmail-lwt
  414. sendmsg
  415. seqes
  416. session-cookie
  417. session-cookie-async
  418. session-cookie-lwt
  419. sihl < "0.2.0"
  420. sihl-type
  421. slug
  422. smol
  423. smol-helpers
  424. sodium-fmt
  425. solidity-alcotest
  426. spdx_licenses
  427. spectrum >= "0.2.0"
  428. spin >= "0.7.0"
  429. squirrel
  430. ssh-agent
  431. stramon-lib
  432. syslog-rfc5424
  433. tcpip >= "2.4.2" & < "3.4.2" | >= "6.2.0"
  434. tdigest < "2.1.0"
  435. terminal
  436. terminal_size >= "0.1.1"
  437. terminus
  438. terminus-cohttp
  439. terminus-hlc
  440. textmate-language >= "0.3.0"
  441. textrazor
  442. tezos-base-test-helpers
  443. tezos-bls12-381-polynomial
  444. tezos-client-base
  445. tezos-client-base-unix >= "13.0"
  446. tezos-crypto >= "8.0" & < "9.0" | >= "11.0" & < "12.0" | >= "13.0"
  447. tezos-crypto-dal
  448. tezos-error-monad >= "12.0"
  449. tezos-event-logging-test-helpers
  450. tezos-lmdb
  451. tezos-micheline = "13.0"
  452. tezos-plompiler = "0.1.3"
  453. tezos-plonk = "0.1.3"
  454. tezos-shell-services >= "13.0"
  455. tezos-signer-backends >= "8.0" & < "13.0"
  456. tezos-stdlib >= "8.0" & < "12.0" | >= "13.0"
  457. tezos-test-helpers
  458. tezos-version >= "13.0"
  459. tezos-webassembly-interpreter
  460. tftp
  461. timedesc
  462. timere
  463. tls >= "0.12.0"
  464. toc
  465. topojson
  466. topojsone
  467. traits
  468. transept
  469. twostep
  470. typebeat
  471. tyre >= "0.4"
  472. tyxml >= "4.0.0"
  473. tyxml-jsx
  474. tyxml-ppx >= "4.3.0"
  475. tyxml-syntax
  476. uecc
  477. ulid
  478. unix-dirent
  479. unix-errno >= "0.3.0"
  480. unix-fcntl >= "0.3.0"
  481. unix-sys-resource
  482. unix-sys-stat
  483. unix-time
  484. unstrctrd
  485. uring < "0.4"
  486. user-agent-parser
  487. uspf
  488. uspf-lwt
  489. uspf-unix
  490. validator
  491. vercel
  492. vpnkit
  493. websocketaf
  494. x509 >= "0.7.0"
  495. xapi-rrd >= "1.8.2"
  496. xapi-stdext-date
  497. xapi-stdext-encodings
  498. xapi-stdext-std >= "4.16.0"
  499. yaml
  500. yaml-sexp
  501. yojson >= "1.6.0"
  502. yuscii >= "0.3.0"
  503. yuujinchou >= "1.0.0"
  504. zlist < "0.4.0"

Conflicts (1)

  1. result < "1.5"