package alcotest

Build not yet checked
  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. mhttp-client >= "0.0.6"
  379. miaou-core
  380. miaou-serve
  381. middleware
  382. migra
  383. mimic
  384. minicaml = "0.3.1" | >= "0.4"
  385. mirage >= "4.0.0"
  386. mirage-block-partition
  387. mirage-block-ramdisk
  388. mirage-channel >= "4.0.1"
  389. mirage-crypto-ec
  390. mirage-flow-unix
  391. mirage-kv >= "2.0.0"
  392. mirage-kv-mem >= "4.0.1"
  393. mirage-kv-unix >= "3.0.0"
  394. mirage-logs
  395. mirage-nat
  396. mirage-net-unix
  397. mirage-runtime < "4.7.0"
  398. mirage-tc
  399. mjson
  400. mldsa
  401. mlgpx
  402. mlkem
  403. mmdb < "0.3.0"
  404. mnd
  405. modelkit
  406. modelkit-nx
  407. modelkit-parallel
  408. modelkit-talon
  409. modelkit-xgboost
  410. mqtt
  411. mrmime >= "0.2.0"
  412. msgpck >= "1.6"
  413. mssql
  414. multibase
  415. multicore-magic
  416. multihash
  417. multihash-digestif
  418. multipart-form-data
  419. multipart_form
  420. multipart_form-eio
  421. multipart_form-lwt
  422. multipart_form-miou
  423. named-pipe
  424. nanoid
  425. nbd >= "4.0.3"
  426. nbd-tool
  427. nel
  428. neo4j_bolt
  429. neodriver
  430. neodriver_core
  431. neodriver_eio
  432. neodriver_packstream
  433. nloge
  434. nocoiner
  435. noise
  436. non_empty_list
  437. nx < "1.0.0~alpha3"
  438. nx-datasets
  439. nx-text
  440. OCADml >= "0.6.0"
  441. obatcher
  442. object
  443. obs-eio
  444. obs-prometheus-eio
  445. ocaml-ai-sdk
  446. ocaml-index < "5.4.1-503"
  447. ocaml-r >= "0.4.0"
  448. ocaml-version >= "3.5.0"
  449. ocamlformat < "0.25.1"
  450. ocamlformat-lib
  451. ocamlformat-mlx-lib
  452. ocamlformat-rpc < "removed"
  453. ocamline
  454. ocgtk
  455. ochre
  456. ochre-cli
  457. ocluster
  458. ocue
  459. odoc < "2.1.1"
  460. oenv >= "0.1.0"
  461. ohex
  462. ohttp
  463. ohttp-cohttp
  464. ohttp-cohttp-eio
  465. ohttp-cohttp-lwt
  466. ohttp-piaf
  467. oidc
  468. oktree >= "0.2.4"
  469. opam-0install
  470. opam-0install-cudf >= "0.5.0"
  471. opam-compiler
  472. opam-file-format >= "2.1.1"
  473. opam-repomin
  474. opencage
  475. opentelemetry >= "0.7" & != "0.90"
  476. opentelemetry-client
  477. opentelemetry-client-cohttp-eio
  478. opentelemetry-client-cohttp-lwt >= "0.6"
  479. opentelemetry-client-ocurl >= "0.6"
  480. opentelemetry-client-ocurl-lwt
  481. opentelemetry-cohttp-lwt >= "0.6"
  482. opentelemetry-logs
  483. opentelemetry-lwt >= "0.6"
  484. opium
  485. opium-graphql
  486. opium-testing
  487. opium_kernel
  488. orewa
  489. orgeat
  490. ortac-core
  491. ortac-wrapper
  492. osnap < "0.3.0"
  493. osx-acl
  494. osx-attr
  495. osx-cf
  496. osx-fsevents
  497. osx-keychain
  498. osx-membership
  499. osx-mount
  500. osx-xattr
  501. otoggl
  502. owl >= "0.7.0" & < "0.7.2" | = "1.0.2" | >= "1.2"
  503. owl-base < "0.5.0"
  504. owl-ode >= "0.1.0" & != "0.2.0"
  505. owl-rllib
  506. owl-symbolic
  507. ozstd
  508. par_incr
  509. parseff
  510. passe
  511. passmaker
  512. patch
  513. pbkdf
  514. pecu >= "0.2"
  515. pf-qubes
  516. pg_query >= "0.9.6"
  517. pgx
  518. pgx_unix
  519. pgx_value_core
  520. pgx_value_ptime
  521. phylogenetics
  522. piaf
  523. picos < "0.5.0"
  524. picos_meta
  525. pidgin
  526. pidgio
  527. piece_rope
  528. plebeia >= "2.0.0"
  529. polyglot
  530. polymarket
  531. polynomial
  532. ppx_bin_there
  533. ppx_blob >= "0.3.0"
  534. ppx_catch
  535. ppx_deriving_cmdliner
  536. ppx_deriving_ezjsonm
  537. ppx_deriving_qcheck
  538. ppx_deriving_rpc
  539. ppx_deriving_yaml
  540. ppx_deriving_yamlx
  541. ppx_ezlua
  542. ppx_hegel_generator
  543. ppx_hegel_test
  544. ppx_inline_alcotest
  545. ppx_map
  546. ppx_marshal
  547. ppx_mica
  548. ppx_parser
  549. ppx_protocol_conv
  550. ppx_protocol_conv_json
  551. ppx_protocol_conv_jsonm
  552. ppx_protocol_conv_msgpack
  553. ppx_protocol_conv_xml_light
  554. ppx_protocol_conv_xmlm
  555. ppx_protocol_conv_yaml
  556. ppx_repr
  557. ppx_subliner
  558. ppx_units
  559. ppx_yojson >= "1.1.0"
  560. pratter
  561. prbnmcn-ucb1 >= "0.0.2"
  562. prc
  563. preface
  564. pretty_expressive
  565. prettym
  566. primavera >= "1.1.0"
  567. privatus-analytics
  568. privatus-analytics-dream
  569. proc-smaps
  570. producer
  571. progress
  572. prom
  573. prometheus < "1.2"
  574. prometheus-app
  575. prometheus-eio
  576. prometheus-lwt
  577. prometheus-reporter
  578. protocell
  579. protocol-9p < "0.11.0" | >= "0.11.2"
  580. protocol-9p-unix
  581. proton
  582. psq
  583. purl
  584. pxshot
  585. pyast
  586. qcaml
  587. qcheck >= "0.25"
  588. qcheck-alcotest
  589. qcheck-core >= "0.25"
  590. qcow-stream >= "0.13.0"
  591. qcow-tool = "0.13.0"
  592. qcow-types = "0.13.0"
  593. qdrant
  594. querty
  595. query-json
  596. quickjs
  597. quill < "1.0.0~alpha3"
  598. quint-connect
  599. randii
  600. reason-standard
  601. red-black-tree
  602. reparse >= "2.0.0" & < "3.0.0"
  603. reparse-unix < "2.1.0"
  604. resp
  605. resp-unix >= "0.10.0"
  606. resto >= "0.9"
  607. rfc1951 < "1.0.0"
  608. routes != "0.7.0" & < "1.0.0"
  609. rpc
  610. rpclib
  611. rpclib-async
  612. rpclib-lwt
  613. rpmfile < "0.3.0"
  614. rpmfile-eio
  615. rpmfile-unix
  616. rune < "1.0.0~alpha3"
  617. runtime_events_tools >= "0.5.2"
  618. SZXX >= "4.0.0"
  619. saga
  620. salsa20
  621. salsa20-core
  622. sanddb >= "0.2"
  623. saturn != "0.4.1"
  624. saturn_lockfree != "0.4.1"
  625. scrypt-kdf
  626. secp256k1 >= "0.4.1"
  627. secp256k1-internal
  628. secret
  629. semver >= "0.2.1"
  630. sendmail
  631. sendmail-lwt
  632. sendmail-miou-unix
  633. sendmail-mirage
  634. sendmsg
  635. seqes
  636. server-reason-react
  637. session-cookie
  638. session-cookie-async
  639. session-cookie-lwt
  640. sha256-cng
  641. shakuhachi
  642. sherlodoc
  643. sihl >= "0.1.4" & < "0.1.8"
  644. slhdsa
  645. slug
  646. smaws-clients
  647. smaws-lib
  648. smol
  649. smol-helpers
  650. smtml >= "0.30.0"
  651. sodium-fmt
  652. solidity-alcotest
  653. sosie
  654. soteria
  655. sowilo < "1.0.0~alpha3"
  656. spdx_licenses
  657. spectrum >= "0.2.0"
  658. spectrum_capabilities
  659. spectrum_palette_ppx
  660. spectrum_palettes
  661. spectrum_tools
  662. spin >= "0.7.0"
  663. spurs < "0.1.1"
  664. squirrel
  665. ssh-agent
  666. ssl >= "0.6.0"
  667. starred_ml
  668. stem
  669. stramon-lib
  670. stringx
  671. styled-ppx
  672. swapfs
  673. symex >= "0.2"
  674. symphony-orchestrator-tui
  675. synchronizer >= "0.2"
  676. syslog-rfc5424
  677. syto
  678. tabr
  679. talon < "1.0.0~alpha3"
  680. tar-eio >= "3.5.0"
  681. tar-mirage
  682. tbls
  683. tcpip
  684. tdigest < "2.1.0"
  685. tdmrep
  686. term-indexing
  687. term-tools
  688. termaid
  689. terminal
  690. terminal_size >= "0.1.1"
  691. terminus
  692. terminus-cohttp
  693. terminus-hlc
  694. terml
  695. testo < "0.3.4"
  696. testo-lwt
  697. textmate-language >= "0.3.0"
  698. textrazor
  699. thread-table
  700. timedesc
  701. timere
  702. timere-parse >= "0.0.7"
  703. timmy
  704. timmy-jsoo
  705. timmy-lwt
  706. timmy-unix
  707. tiny_appkits
  708. tiny_languages
  709. tiny_libs
  710. tinybox
  711. tls >= "0.12.8"
  712. toc
  713. topojson
  714. topojsone
  715. trail
  716. traits
  717. transept
  718. tsort >= "2.2.0"
  719. tw
  720. twostep
  721. type_eq
  722. type_id
  723. typeid >= "1.0.1"
  724. tyre >= "0.4"
  725. tyxml >= "4.2.0"
  726. tyxml-jsx
  727. tyxml-ppx >= "4.3.0"
  728. tyxml-syntax
  729. ucharset
  730. uecc
  731. ulid
  732. universal-portal
  733. unix-dirent
  734. unix-errno
  735. unix-sys-resource
  736. unix-sys-stat
  737. unix-time
  738. unstrctrd
  739. uring < "0.4"
  740. user-agent-parser
  741. uspf
  742. uspf-lwt
  743. uspf-mirage
  744. uspf-unix
  745. utcp
  746. utop >= "2.13.0"
  747. validate
  748. validator
  749. valkey
  750. vercel
  751. verdict
  752. vhd-format-lwt >= "0.13.0"
  753. wayland >= "2.0"
  754. wcwidth
  755. websocketaf
  756. wire
  757. x509 >= "0.7.0"
  758. xapi-rrd
  759. xapi-stdext-date
  760. xapi-stdext-encodings < "4.22.0"
  761. xapi-stdext-std >= "4.16.0"
  762. xdge
  763. xgboost
  764. xkbcommon
  765. yaml
  766. yaml-sexp
  767. yocaml
  768. yocaml_syndication >= "2.0.0"
  769. yocaml_yaml < "2.0.0"
  770. yojson >= "1.6.0"
  771. yojson-five
  772. yuscii >= "0.3.0"
  773. yuujinchou >= "1.0.0"
  774. zar
  775. zed >= "3.2.2"
  776. 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 8d8d144. 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.

This version is not in the latest run; the versions below are.

Version OCaml 4.11 OCaml 4.14 OCaml 5.2 OCaml 5.4 OCaml 5.5
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