package alcotest

All checked builds pass
  1. Overview
  2. Docs
Alcotest is a lightweight and colourful test framework

Install

dune-project
 Dependency

Authors

Maintainers

Sources

alcotest-1.10.2.tbz
sha256=6e0da8828fbf6826de0b782dfe32c45f9fee7a44f1d6257c697d0cf92cfecd36
sha512=fadb58647cb046624e54a08da873e1abdf56fedc3f5f6c9d91a851e4f83a688e451ba087e8100976bfcbe8d6374dd2e6db718f175483e0a825e0acba7be3a3d1

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.

Added to opam-repository:

README

A lightweight and colourful test framework.


Alcotest exposes a 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. See the manpage for details.

The API documentation can be found here. For information on contributing to Alcotest, see CONTRIBUTING.md.

OCaml-CI Build Status Alcotest Documentation


Examples

A simple example (taken from examples/simple.ml):

Generated by the following test suite specification:

(* A module with functions to test *)
module To_test = struct
  let lowercase = String.lowercase_ascii
  let capitalize = String.capitalize_ascii
  let str_concat = String.concat ""
  let list_concat = List.append
end

(* The tests *)
let test_lowercase () =
  Alcotest.(check string) "same string" "hello!" (To_test.lowercase "hELLO!")

let test_capitalize () =
  Alcotest.(check string) "same string" "World." (To_test.capitalize "world.")

let test_str_concat () =
  Alcotest.(check string) "same string" "foobar" (To_test.str_concat ["foo"; "bar"])

let test_list_concat () =
  Alcotest.(check (list int)) "same lists" [1; 2; 3] (To_test.list_concat [1] [2; 3])

(* Run it *)
let () =
  let open Alcotest in
  run "Utils" [
      "string-case", [
          test_case "Lower case"     `Quick test_lowercase;
          test_case "Capitalization" `Quick test_capitalize;
        ];
      "string-concat", [ test_case "String mashing" `Quick test_str_concat  ];
      "list-concat",   [ test_case "List mashing"   `Slow  test_list_concat ];
    ]

The result is a self-contained binary which displays the test results. Use dune exec examples/simple.exe -- --help to see the runtime options.

Here's an example of a of failing test suite:

By default, only the first failing test log is printed to the console (and all test logs are captured on disk). Pass --show-errors to print all error messages.

Using Alcotest with opam and Dune

Add (alcotest :with-test) to the depends stanza of your dune-project file, or "alcotest" {with-test} to your opam file. Use the with-test package variable to declare your tests opam dependencies. Call opam to install them:

$ opam install --deps-only --with-test .

You can then declare your test and link with Alcotest: (test (libraries alcotest …) …), and run your tests:

$ dune runtest

Selecting tests to execute

You can filter which tests to run by supplying a regular expression matching the names of the tests to execute, or by passing a regular expression and a comma-separated list of test numbers (or ranges of test numbers, e.g. 2,4..9):

$ ./simple.exe test '.*concat*'
Testing `Utils'.
This run has ID `6EK5G4SO'.

  [SKIP]        string-case            0   Lower case.
  [SKIP]        string-case            1   Capitalization.
  [OK]          string-concat          0   String mashing.
  [OK]          list-concat            0   List mashing.

Full test results in `~/project/_build/_tests/run/Utils/20261106-230254-6EK5G4SO'.
Test Successful in 0.001s. 2 tests run.

$ ./simple.exe test 'string-case' '1..3'
Testing `Utils'.
This run has ID `YSMUHQ8K'.

  [SKIP]        string-case            0   Lower case.
  [OK]          string-case            1   Capitalization.
  [SKIP]        string-concat          0   String mashing.
  [SKIP]        list-concat            0   List mashing.

Full test results in `~/project/_build/_tests/run/Utils/20261106-230255-YSMUHQ8K'.
Test Successful in 0.001s. 1 test run.

Note that you cannot filter by test case name (i.e. Lower case or Capitalization), you must filter by test name & number instead.

See the examples directory for more examples.

Grouping tests

Alcotest.group nests test cases. They run in place, and are reported and selected under a dotted name:

Alcotest.run "suite"
  [ suite "storage"
      [ test "read" read;
        group ~tags:`Slow "backend" [ test "git" git ];
        test "write" write ] ]
$ ./test.exe test '^storage\.backend'

Quick and Slow tests

In general you should use `Quick tests: tests that are ran on any invocations of the test suite. You should only use `Slow tests for stress tests that are ran only on occasion (typically before a release or after a major change). These slow tests can be suppressed by passing the -q flag on the command line, e.g.:

$ ./test.exe -q # run only the quick tests
$ ./test.exe    # run quick and slow tests

Tags

A test says when it runs, and the command line sets up the context it runs in. The context is a set of tags that starts with quick and slow: -q removes slow, and --tags or ALCOTEST_TAGS add tags, or remove them with -.

open Alcotest

test_case "plain" `Quick f                       (* the default context *)
test_case "big" `Slow f                          (* the default context, not -q *)
test_case "smoke" `Always f                      (* always *)
test_case "fetch" (`Tag "ci") f                  (* only when asked for *)
test_case "tls" Tag.(v "ci" || v "release") f    (* when asked for either *)
test_case "dump" Tag.(slow && v "release") f     (* release, not with -q *)
test_case "local" Tag.(not (v "ci")) f           (* unless asked for ci *)
$ ./test.exe                         # plain, big, smoke, local
$ ./test.exe -q                      # plain, smoke, local
$ ./test.exe --tags=ci               # also fetch and tls, no local
$ ./test.exe --tags=release -q       # plain, tls, smoke, local, no dump
$ ./test.exe -q --tags=slow          # -q does not win: also big
$ ./test.exe --tags=ci,-quick,-slow  # fetch, tls, smoke
$ ALCOTEST_TAGS=ci dune test --force
$ ./test.exe tags                    # the tags these tests use

--tags replaces ALCOTEST_TAGS. Tags passed to --tags must be used by a test in that executable, or it stops with an error. ALCOTEST_TAGS applies to a whole dune workspace, where many executables do not use a tag, so it does not check them. An executable whose tests the tags all disable exits 0 with a warning naming the tags they use, and list shows each condition other than `Quick and `Slow.

JUnit XML reports

With --junit, or ALCOTEST_JUNIT=1 in the environment, each run also writes a JUnit XML report, for CI systems such as GitLab, Jenkins or CircleCI. This is experimental: the location and contents of the report may change. The reports of all runs are in the same directory:

<log directory>/junit/<name>-<time>-<id>.xml

<name> is the name given to run. The log directory is _build/_tests of the dune workspace under dune test, or the one given by -o.

Each test has the file and line where it is defined, or where it failed. A test written as a plain tuple has no location: use test or test_case. The <testsuite> has the file that calls run.

As in other JUnit reports, a test that fails a check or calls fail is a <failure>, and a test that raises any other exception, such as failwith or assert false, is an <error>. Both make the run fail; CI systems count them separately.

The report is written at the end of the run, or when the process exits early, in which case it marks the running test as an <error>. Nothing is written if the process is killed.

After ALCOTEST_JUNIT=1 dune test, the reports are in _build/_tests/junit. Upload them even when tests fail. A CI job usually starts from a clean _build; otherwise the pattern also matches the reports of earlier runs. A test that dune does not run again, because its result is cached, writes no report: use dune test --force to run them all. Dune does not run a test again when only ALCOTEST_JUNIT changes.

GitLab:

test:
  variables:
    ALCOTEST_JUNIT: "1"
  script:
    - dune test
  artifacts:
    when: always
    reports:
      junit: _build/_tests/junit/*.xml

GitHub Actions, with action-junit-report:

- run: opam exec -- dune test
  env:
    ALCOTEST_JUNIT: 1
- uses: mikepenz/action-junit-report@v6
  if: success() || failure()
  with:
    report_paths: _build/_tests/junit/*.xml

CircleCI:

- run:
    command: dune test
    environment:
      ALCOTEST_JUNIT: 1
- store_test_results:
    path: _build/_tests/junit

Jenkins:

// after a `dune test` with ALCOTEST_JUNIT=1 in its environment
junit '_build/_tests/junit/*.xml'

Locally, with ALCOTEST_JUNIT=1 exported, the reports of earlier runs stay in _build/_tests/junit, so a JUnit tool such as junit2html can show how each test did across runs:

junit2html --report-matrix history.html _build/_tests/junit/*.xml

Passing custom options to the tests

In most cases, the base tests are unit -> unit functions. However, it is also possible to pass an extra option to all the test functions by using 'a -> unit, where 'a is the type of the extra parameter.

In order to do this, you need to specify how this extra parameter is read on the command-line, by providing a Cmdliner term for command-line arguments which explains how to parse and serialize values of type 'a (note: do not use positional arguments, only optional arguments are supported).

For instance:

let test_nice i = Alcotest.(check int) "Is it a nice integer?" i 42

let int =
  let doc = "What is your preferred number?" in
  Cmdliner.Arg.(required & opt (some int) None & info ["n"] ~doc ~docv:"NUM")

let () =
  Alcotest.run_with_args "foo" int [
    "all", ["nice", `Quick, test_nice]
  ]

Will generate test.exe such that:

$ ./test.exe test
Usage: test.exe test [--help] [OPTION]… [NAME_REGEX] [TESTCASES]
test.exe: required option -n is missing

$ ./test.exe test -n 42
Testing `foo'.
This run has ID `GC4AOLNM'.

  [OK]          all          0   nice.

Full test results in `~/project/_build/_tests/run/foo/20261106-230624-GC4AOLNM'.
Test Successful in 0.000s. 1 test run.

Lwt

Alcotest provides an Alcotest_lwt module that you could use to wrap Lwt test cases. The basic idea is that instead of providing a test function in the form unit -> unit, you provide one with the type Lwt_switch.t -> unit -> unit Lwt.t, and Alcotest_lwt.run returns a promise for you to run with Lwt_main.run.

However, there are a couple of extra features:

  • If an async exception occurs, it will cancel your test case for you and fail it (rather than exiting the process).
  • You get given a switch, which will be turned off when the test case finishes (or fails). You can use that to free up any resources.

For instance:

let free () = print_endline "freeing all resources"; Lwt.return ()

let test_lwt switch () =
  Lwt_switch.add_hook (Some switch) free;
  Lwt.async (fun () -> failwith "All is broken");
  Lwt_unix.sleep 10.

let () =
  Lwt_main.run @@ Alcotest_lwt.run "foo" [
    "all", [
      Alcotest_lwt.test_case "one" `Quick test_lwt
    ]
  ]

Will generate:

$ ./test.exe
Testing `foo'.
This run has ID `BSCZ4E0B'.

> [FAIL]        all          0   one.

┌──────────────────────────────────────────────────────────────────────────────┐
│ [FAIL]        all          0   one.                                          │
└──────────────────────────────────────────────────────────────────────────────┘
freeing all resources
File "test.ml", line 11, character 6:
[failure] All is broken
          Raised at Stdlib.failwith in file "stdlib.ml", line 29, characters 17-33
          Called from Lwt.Concurrent_composition.async in file "src/core/lwt.ml", line 2544, characters 10-14

Logs saved to `~/project/_build/_tests/run/foo/20261106-230256-BSCZ4E0B/all.000.output'.
 ──────────────────────────────────────────────────────────────────────────────

Full test results in `~/project/_build/_tests/run/foo/20261106-230256-BSCZ4E0B'.
1 failure! in 0.000s. 1 test run.

Comparison with other testing frameworks

The README is pretty clear about that:

Alcotest is the only testing framework using colors!

More seriously, Alcotest is similar to ounit but it fixes a few of the problems found in that library:

  • Alcotest has a nicer output, it is easier to see what failed and what succeeded and to read the log outputs of the failed tests;
  • Alcotest uses combinators to define pretty-printers and comparators between the things to test.

Other nice tools doing different kind of testing also exist:

  • qcheck does random generation and property testing (e.g. Quick Check);
  • crowbar and bun are similar to qcheck, but use compiler-directed randomness, i.e. they take advantage of the AFL support the OCaml compiler;
  • ppx_inline_tests allows to write tests in the same file as your source-code; they will be run only in a special mode of compilation.

Dependencies (6)

  1. re >= "1.7.2"
  2. cmdliner >= "1.2.0"
  3. astring
  4. fmt >= "0.8.7"
  5. ocaml >= "4.14"
  6. dune >= "3.17"

Dev Dependencies (1)

  1. odoc with-doc

Optional Dependencies

None

  1. a2a-client
  2. aho-corasick
  3. ahrocksdb
  4. albatross >= "1.5.4"
  5. alcobar
  6. alcotest-async >= "1.10.2"
  7. alcotest-lwt >= "1.10.2"
  8. alcotest-mirage >= "1.10.2"
  9. alg_structs_qcheck
  10. algaeff
  11. ambient-context
  12. ambient-context-eio
  13. ambient-context-lwt
  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. async-uri >= "0.5.0"
  28. atd >= "2.3.3"
  29. atdgen >= "2.10.0"
  30. atdpy
  31. atdts
  32. avro-simple
  33. aws-eio
  34. awskit
  35. awskit-eio
  36. awskit-lwt
  37. awskit-lwt-unix < "0.2.0"
  38. awskit-s3
  39. awskit-s3-eio < "0.2.0"
  40. awskit-s3-lwt < "0.2.0"
  41. awskit-s3-lwt-unix < "0.2.0"
  42. awskit-s3-sim
  43. azure-cosmos-db-eio
  44. backoff
  45. base32
  46. base64 >= "2.1.2" & < "3.2.0" | >= "3.4.0"
  47. bastet
  48. bastet_lwt
  49. bech32
  50. bechamel >= "0.5.0"
  51. betacalendars
  52. bhttp
  53. bigarray-overlap
  54. bigstringaf
  55. bin_there
  56. biotk >= "0.4"
  57. bitlib
  58. bizowie-api
  59. blake2
  60. bloomf
  61. bls12-381 < "0.4.1" | >= "3.0.0" & < "18.0"
  62. bls12-381-hash
  63. bls12-381-js >= "0.4.2"
  64. bls12-381-js-gen >= "0.4.2"
  65. bls12-381-legacy
  66. bls12-381-signature
  67. bls12-381-unix
  68. blurhash
  69. bm25
  70. brisk-reconciler
  71. builder-web
  72. bytebuffer
  73. bytream >= "0.2"
  74. ca-certs
  75. ca-certs-nss
  76. cabal
  77. cabal_workflow_runner
  78. cachet
  79. cachet-lwt
  80. cachet-solo5
  81. cactus
  82. caldav
  83. calendar >= "3.0.0"
  84. calendars >= "2.0.0"
  85. callipyge
  86. camlix
  87. camlkit
  88. camlkit-base
  89. capnp-rpc
  90. capnp-rpc-unix
  91. caqti >= "1.7.0"
  92. caqti-async >= "1.7.0"
  93. caqti-driver-mariadb >= "1.7.0"
  94. caqti-driver-postgresql >= "1.7.0"
  95. caqti-driver-sqlite3 >= "1.7.0"
  96. caqti-dynload = "2.0.1"
  97. caqti-eio
  98. caqti-lwt >= "1.7.0"
  99. caqti-miou
  100. carray
  101. carton < "1.0.0"
  102. carton-git
  103. carton-lwt >= "0.4.3" & < "1.0.0"
  104. cascade
  105. catala >= "0.6.0"
  106. cborl
  107. cf-lwt
  108. chacha
  109. chamelon
  110. chamelon-unix
  111. charrua-client
  112. charrua-server
  113. checked_oint
  114. checkseum >= "0.0.3"
  115. cid
  116. clarity-lang
  117. class_group_vdf
  118. cohttp
  119. cohttp-curl-async
  120. cohttp-curl-lwt
  121. cohttp-eio >= "6.0.0~beta2"
  122. cohttp-mirage >= "6.3.0"
  123. colombe >= "0.2.0"
  124. color
  125. commons
  126. conan
  127. conan-cli
  128. conan-database
  129. conan-lwt
  130. conan-unix
  131. conex < "0.10.0"
  132. conex-mirage-crypto
  133. conformist
  134. console
  135. console-eio
  136. console-lwt
  137. contract
  138. cookie
  139. corosync
  140. cow >= "2.2.0"
  141. crockford
  142. css
  143. css-parser
  144. cstruct
  145. cstruct-sexp
  146. ctypes-zarith
  147. cuid
  148. cure2
  149. curly
  150. current
  151. current-albatross-deployer
  152. current_git >= "0.7.1"
  153. current_incr
  154. current_rpc >= "0.7.4"
  155. curve448
  156. cvc5 >= "1.3.0-3"
  157. data-encoding
  158. dates_calc
  159. dbase4
  160. decimal >= "0.3.0"
  161. decompress
  162. digestif >= "0.9.0"
  163. dispatch >= "0.4.1"
  164. dkim
  165. dkim-bin
  166. dkim-mirage
  167. dkml-dune-dsl-show
  168. dkml-install
  169. dkml-install-installer
  170. dkml-install-runner
  171. dmarc
  172. dns >= "4.4.1"
  173. dns-cli
  174. dns-client >= "4.6.3"
  175. dns-forward-lwt-unix
  176. dns-resolver
  177. dns-server
  178. dns-tsig
  179. dnssd
  180. dnssec
  181. docfd >= "13.0.0"
  182. dockerfile >= "8.2.7"
  183. dockerfile-opam >= "8.3.4"
  184. domain-local-await >= "0.2.1"
  185. domain-local-timeout
  186. domain-name
  187. dream
  188. dream-htmx
  189. dream-pure
  190. dscheck >= "0.1.1"
  191. duff
  192. dune-deps >= "1.4.0"
  193. dune-release >= "1.0.0"
  194. duration
  195. ease-caml >= "0.1.7"
  196. echo
  197. ecma-regex
  198. eio < "0.12"
  199. eio-chaos
  200. eio-fs
  201. eio-net
  202. eio_linux
  203. eio_windows
  204. eliom >= "13.0.0"
  205. elm_playground_3d_software
  206. elm_playground_gamekits
  207. elm_playground_software
  208. emile
  209. encore
  210. eqaf >= "0.5"
  211. equinoxe
  212. equinoxe-cohttp
  213. equinoxe-hlc
  214. ezgzip
  215. ezjsonm
  216. ezjsonm-lwt
  217. ezlua
  218. FPauth
  219. FPauth-core
  220. FPauth-responses
  221. FPauth-strategies
  222. faker
  223. faraday != "0.2.0"
  224. farfadet
  225. fat-filesystem
  226. fehu < "1.0.0~alpha3"
  227. ff
  228. ff-pbt
  229. flex-array
  230. flux
  231. fluxt
  232. forcamla
  233. forester >= "5.0"
  234. fsevents-lwt
  235. functoria
  236. fungi
  237. fxmacrodata
  238. geojson
  239. geoml >= "0.1.1"
  240. git
  241. git-cohttp
  242. git-cohttp-unix
  243. git-kv != "0.1.3"
  244. git-mirage
  245. git-net
  246. git-split
  247. git-unix
  248. gitlab-unix
  249. glicko2
  250. gmap
  251. gmocoin
  252. gobba
  253. gpt
  254. graphql
  255. graphql-async
  256. graphql-cohttp >= "0.13.0"
  257. graphql-lwt
  258. graphql_parser != "0.11.0"
  259. graphql_ppx
  260. guardian >= "0.4.0"
  261. h1
  262. h1_parser
  263. h2
  264. hacl
  265. hacl-star >= "0.6.0"
  266. hacl_func
  267. hacl_x25519
  268. handlebars-ml >= "0.2.1"
  269. hedgehog-alcotest
  270. hegel
  271. hermetic
  272. hexaly
  273. hexen
  274. highlexer
  275. highs
  276. highway
  277. highway-dream
  278. hkdf
  279. hockmd
  280. hpke
  281. html_of_jsx
  282. http
  283. http-multipart-formdata < "2.0.0"
  284. httpaf >= "0.2.0"
  285. httpcats
  286. https-eio
  287. httpun
  288. httpun-ws
  289. hugin < "1.0.0~alpha3"
  290. huml
  291. hvsock
  292. icalendar
  293. idna
  294. imagelib
  295. index
  296. inferno >= "20220603"
  297. influxdb-async
  298. influxdb-lwt
  299. inquire < "0.2.0"
  300. intel_hex >= "0.3"
  301. interval-map
  302. iomux
  303. irmin
  304. irmin-bench
  305. irmin-chunk
  306. irmin-cli
  307. irmin-containers
  308. irmin-fs
  309. irmin-git
  310. irmin-graphql
  311. irmin-pack
  312. irmin-pack-tools
  313. irmin-test != "3.6.1"
  314. irmin-tezos < "3.6.1"
  315. irmin-unix
  316. irmin-watcher
  317. jekyll-format
  318. jose
  319. json-data-encoding >= "0.9"
  320. json-data-encoding-bson >= "1.1.1"
  321. json_decoder
  322. jsonfeed
  323. jsonschema-core
  324. jsonschema-validation
  325. jsonxt
  326. junit_alcotest >= "2.3.0"
  327. jwto
  328. k7
  329. kafka-eio
  330. kaun < "1.0.0~alpha3"
  331. kcas >= "0.6.0"
  332. kcas_data >= "0.6.0"
  333. kdf
  334. ke >= "0.2"
  335. kkmarkdown
  336. kmt
  337. kube
  338. lambda-runtime
  339. lambda_streams
  340. lambda_streams_async
  341. lambdapi
  342. layoutz
  343. letters
  344. liquid_ml >= "0.1.3"
  345. lmdb >= "1.0"
  346. lockfree >= "0.3.1"
  347. logical
  348. logtk
  349. lp
  350. lp-glpk
  351. lp-glpk-js < "0.5.0"
  352. lp-gurobi < "0.5.0"
  353. lru
  354. lt-code
  355. luv
  356. mazeppa
  357. mbr-format
  358. mcp-kit
  359. mcp-kit-cohttp-eio
  360. mcp-kit-eio
  361. mcp-kit-ppx
  362. mdx
  363. mec
  364. mechaml >= "1.2.1"
  365. mehari >= "0.5"
  366. mehari-miou
  367. mehari-mirage >= "0.5"
  368. mel-bastet
  369. melange >= "7.0.0-51"
  370. melange-edn >= "0.5.0"
  371. menhir-lsp >= "0.3.3"
  372. menhirformat
  373. merlin = "4.17.1-501"
  374. merlin-lib >= "4.17.1-501"
  375. metrics
  376. mfat
  377. mfetch
  378. mgit
  379. mhttp-client >= "0.0.6"
  380. miaou-core
  381. miaou-serve
  382. middleware
  383. migra
  384. mimic
  385. minicaml = "0.3.1" | >= "0.4"
  386. mirage >= "4.0.0"
  387. mirage-block-partition
  388. mirage-block-ramdisk
  389. mirage-channel >= "4.0.1"
  390. mirage-crypto-ec
  391. mirage-flow-unix
  392. mirage-kv >= "2.0.0"
  393. mirage-kv-mem >= "4.0.1"
  394. mirage-kv-unix >= "3.0.0"
  395. mirage-logs
  396. mirage-nat
  397. mirage-net-unix
  398. mirage-runtime < "4.7.0"
  399. mirage-tc
  400. mjson
  401. mldsa
  402. mlgpx
  403. mlkem
  404. mmdb < "0.3.0"
  405. mnd
  406. modelkit
  407. modelkit-nx
  408. modelkit-parallel
  409. modelkit-talon
  410. modelkit-xgboost
  411. mqtt
  412. mrmime >= "0.2.0"
  413. msgpck >= "1.6"
  414. mssql
  415. multibase
  416. multicore-magic
  417. multihash
  418. multihash-digestif
  419. multipart-form-data
  420. multipart_form
  421. multipart_form-eio
  422. multipart_form-lwt
  423. multipart_form-miou
  424. named-pipe
  425. nanoid
  426. nbd >= "4.0.3"
  427. nbd-tool
  428. nel
  429. neo4j_bolt
  430. neodriver
  431. neodriver_core
  432. neodriver_eio
  433. neodriver_packstream
  434. nloge
  435. nocoiner
  436. noise
  437. non_empty_list
  438. nx < "1.0.0~alpha3"
  439. nx-datasets
  440. nx-text
  441. OCADml >= "0.6.0"
  442. obatcher
  443. object
  444. obs-eio
  445. obs-prometheus-eio
  446. ocaml-ai-sdk
  447. ocaml-index < "5.4.1-503"
  448. ocaml-r >= "0.4.0"
  449. ocaml-version >= "3.5.0"
  450. ocamlformat < "0.25.1"
  451. ocamlformat-lib
  452. ocamlformat-mlx-lib
  453. ocamlformat-rpc < "removed"
  454. ocamline
  455. ocgtk
  456. ochre
  457. ochre-cli
  458. ocluster
  459. ocue
  460. odoc < "2.1.1"
  461. oenv >= "0.1.0"
  462. ohex
  463. ohttp
  464. ohttp-cohttp
  465. ohttp-cohttp-eio
  466. ohttp-cohttp-lwt
  467. ohttp-piaf
  468. oidc
  469. oktree >= "0.2.4"
  470. opam-0install
  471. opam-0install-cudf >= "0.5.0"
  472. opam-compiler
  473. opam-file-format >= "2.1.1"
  474. opam-repomin
  475. opencage
  476. opentelemetry >= "0.7" & != "0.90"
  477. opentelemetry-client
  478. opentelemetry-client-cohttp-eio
  479. opentelemetry-client-cohttp-lwt >= "0.6"
  480. opentelemetry-client-ocurl >= "0.6"
  481. opentelemetry-client-ocurl-lwt
  482. opentelemetry-cohttp-lwt >= "0.6"
  483. opentelemetry-logs
  484. opentelemetry-lwt >= "0.6"
  485. opium
  486. opium-graphql
  487. opium-testing
  488. opium_kernel
  489. orewa
  490. orgeat
  491. ortac-core
  492. ortac-wrapper
  493. osnap < "0.3.0"
  494. osx-acl
  495. osx-attr
  496. osx-cf
  497. osx-fsevents
  498. osx-keychain
  499. osx-membership
  500. osx-mount
  501. osx-xattr
  502. otoggl
  503. owl >= "0.7.0" & < "0.7.2" | = "1.0.2" | >= "1.2"
  504. owl-base < "0.5.0"
  505. owl-ode >= "0.1.0" & != "0.2.0"
  506. owl-rllib
  507. owl-symbolic
  508. ozstd
  509. par_incr
  510. parseff
  511. passe
  512. passmaker
  513. patch
  514. pbkdf
  515. pecu >= "0.2"
  516. pf-qubes
  517. pg_query >= "0.9.6"
  518. pgx
  519. pgx_unix
  520. pgx_value_core
  521. pgx_value_ptime
  522. phylogenetics
  523. piaf
  524. picos < "0.5.0"
  525. picos_meta
  526. pidgin
  527. pidgio
  528. piece_rope
  529. plebeia >= "2.0.0"
  530. polyglot
  531. polymarket
  532. polynomial
  533. ppx_bin_there
  534. ppx_blob >= "0.3.0"
  535. ppx_catch
  536. ppx_deriving_cmdliner
  537. ppx_deriving_ezjsonm
  538. ppx_deriving_qcheck
  539. ppx_deriving_rpc
  540. ppx_deriving_yaml
  541. ppx_deriving_yamlx
  542. ppx_ezlua
  543. ppx_hegel_generator
  544. ppx_hegel_test
  545. ppx_inline_alcotest
  546. ppx_map
  547. ppx_marshal
  548. ppx_mica
  549. ppx_parser
  550. ppx_protocol_conv
  551. ppx_protocol_conv_json
  552. ppx_protocol_conv_jsonm
  553. ppx_protocol_conv_msgpack
  554. ppx_protocol_conv_xml_light
  555. ppx_protocol_conv_xmlm
  556. ppx_protocol_conv_yaml
  557. ppx_repr
  558. ppx_subliner
  559. ppx_units
  560. ppx_yojson >= "1.1.0"
  561. pratter
  562. prbnmcn-ucb1 >= "0.0.2"
  563. prc
  564. preface
  565. pretty_expressive
  566. prettym
  567. primavera >= "1.1.0"
  568. privatus-analytics
  569. privatus-analytics-dream
  570. proc-smaps
  571. producer
  572. progress
  573. prom
  574. prometheus < "1.2"
  575. prometheus-app
  576. prometheus-eio
  577. prometheus-lwt
  578. prometheus-reporter
  579. protocell
  580. protocol-9p < "0.11.0" | >= "0.11.2"
  581. protocol-9p-unix
  582. proton
  583. psq
  584. purl
  585. pxshot
  586. pyast
  587. qcaml
  588. qcheck >= "0.25"
  589. qcheck-alcotest
  590. qcheck-core >= "0.25"
  591. qcow-stream >= "0.13.0"
  592. qcow-tool = "0.13.0"
  593. qcow-types = "0.13.0"
  594. qdrant
  595. querty
  596. query-json
  597. quickjs
  598. quill < "1.0.0~alpha3"
  599. quint-connect
  600. randii
  601. reason-standard
  602. red-black-tree
  603. reparse >= "2.0.0" & < "3.0.0"
  604. reparse-unix < "2.1.0"
  605. resp
  606. resp-unix >= "0.10.0"
  607. resto >= "0.9"
  608. rfc1951 < "1.0.0"
  609. routes != "0.7.0" & < "1.0.0"
  610. rpc
  611. rpclib
  612. rpclib-async
  613. rpclib-lwt
  614. rpmfile < "0.3.0"
  615. rpmfile-eio
  616. rpmfile-unix
  617. rune < "1.0.0~alpha3"
  618. runtime_events_tools >= "0.5.2"
  619. SZXX >= "4.0.0"
  620. saga
  621. salsa20
  622. salsa20-core
  623. sanddb >= "0.2"
  624. saturn != "0.4.1"
  625. saturn_lockfree != "0.4.1"
  626. scrypt-kdf
  627. secp256k1 >= "0.4.1"
  628. secp256k1-internal
  629. secret
  630. semver >= "0.2.1"
  631. sendmail
  632. sendmail-lwt
  633. sendmail-miou-unix
  634. sendmail-mirage
  635. sendmsg
  636. seqes
  637. server-reason-react
  638. session-cookie
  639. session-cookie-async
  640. session-cookie-lwt
  641. sha256-cng
  642. shakuhachi
  643. sherlodoc
  644. sihl >= "0.1.4" & < "0.1.8"
  645. slhdsa
  646. slug
  647. smaws-clients
  648. smaws-lib
  649. smol
  650. smol-helpers
  651. smtml >= "0.30.0"
  652. sodium-fmt
  653. solidity-alcotest
  654. sosie
  655. soteria
  656. sowilo < "1.0.0~alpha3"
  657. spdx_licenses
  658. spectrum >= "0.2.0"
  659. spectrum_capabilities
  660. spectrum_palette_ppx
  661. spectrum_palettes
  662. spectrum_tools
  663. spin >= "0.7.0"
  664. spurs < "0.1.1"
  665. squirrel
  666. ssh-agent
  667. ssl >= "0.6.0"
  668. starred_ml
  669. stem
  670. stramon-lib
  671. stringx
  672. styled-ppx
  673. swapfs
  674. symex >= "0.2"
  675. symphony-orchestrator-tui
  676. synchronizer >= "0.2"
  677. syslog-rfc5424
  678. syto
  679. tabr
  680. talon < "1.0.0~alpha3"
  681. tar-eio >= "3.5.0"
  682. tar-mirage
  683. tbls
  684. tcpip
  685. tdigest < "2.1.0"
  686. tdmrep
  687. term-indexing
  688. term-tools
  689. termaid
  690. terminal
  691. terminal_size >= "0.1.1"
  692. terminus
  693. terminus-cohttp
  694. terminus-hlc
  695. terml
  696. testo < "0.3.4"
  697. testo-lwt
  698. textmate-language >= "0.3.0"
  699. textrazor
  700. thread-table
  701. timedesc
  702. timere
  703. timere-parse >= "0.0.7"
  704. timmy
  705. timmy-jsoo
  706. timmy-lwt
  707. timmy-unix
  708. tiny_appkits
  709. tiny_languages
  710. tiny_libs
  711. tinybox
  712. tls >= "0.12.8"
  713. toc
  714. topojson
  715. topojsone
  716. trail
  717. traits
  718. transept
  719. tsort >= "2.2.0"
  720. tw
  721. twostep
  722. type_eq
  723. type_id
  724. typeid >= "1.0.1"
  725. tyre >= "0.4"
  726. tyxml >= "4.2.0"
  727. tyxml-jsx
  728. tyxml-ppx >= "4.3.0"
  729. tyxml-syntax
  730. ucharset
  731. uecc
  732. ulid
  733. universal-portal
  734. unix-dirent
  735. unix-errno
  736. unix-sys-resource
  737. unix-sys-stat
  738. unix-time
  739. unstrctrd
  740. uring < "0.4"
  741. user-agent-parser
  742. uspf
  743. uspf-lwt
  744. uspf-mirage
  745. uspf-unix
  746. utcp
  747. utop >= "2.13.0"
  748. validate
  749. validator
  750. valkey
  751. vercel
  752. verdict
  753. vhd-format-lwt >= "0.13.0"
  754. wayland >= "2.0"
  755. wcwidth
  756. websocketaf
  757. wire
  758. x509 >= "0.7.0"
  759. xapi-rrd
  760. xapi-stdext-date
  761. xapi-stdext-encodings < "4.22.0"
  762. xapi-stdext-std >= "4.16.0"
  763. xdge
  764. xgboost
  765. xkbcommon
  766. yaml
  767. yaml-sexp
  768. yocaml
  769. yocaml_syndication >= "2.0.0"
  770. yocaml_yaml < "2.0.0"
  771. yojson >= "1.6.0"
  772. yojson-five
  773. yuscii >= "0.3.0"
  774. yuujinchou >= "1.0.0"
  775. zar
  776. zed >= "3.2.2"
  777. zlist < "0.4.0"

Conflicts (2)

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

Build status

Results of building alcotest with each compiler on check.ci.ocaml.org, run of against opam-repository efadaba. All results for this package.

Each result links to its build log. To keep crawlers from overloading the site, build logs require a GitHub sign-in (see ocurrent/opam-health-check). On your first log, GitHub asks you to “Authorize opam-health-check”, the OCurrent app that runs these checks; it sees only your public profile, not your repositories. The sign-in lasts 30 days.

Version OCaml 4.11 OCaml 4.14 OCaml 5.2 OCaml 5.4 OCaml 5.5
1.10.2 (this version) n/a good good good good
1.9.1 good good good good good
  • good Package successfully built
  • partial One of the dependencies failed to build
  • bad Package failed to build
  • n/a Package is not available in this environment
  • internal Internal failure