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. hexen
  273. highlexer
  274. highway
  275. highway-dream
  276. hkdf
  277. hockmd
  278. hpke
  279. html_of_jsx
  280. http
  281. http-multipart-formdata < "2.0.0"
  282. httpaf >= "0.2.0"
  283. httpcats
  284. https-eio
  285. httpun
  286. httpun-ws
  287. hugin < "1.0.0~alpha3"
  288. huml
  289. hvsock
  290. icalendar
  291. idna
  292. imagelib
  293. index
  294. inferno >= "20220603"
  295. influxdb-async
  296. influxdb-lwt
  297. inquire < "0.2.0"
  298. intel_hex >= "0.3"
  299. interval-map
  300. iomux
  301. irmin
  302. irmin-bench
  303. irmin-chunk
  304. irmin-cli
  305. irmin-containers
  306. irmin-fs
  307. irmin-git
  308. irmin-graphql
  309. irmin-pack
  310. irmin-pack-tools
  311. irmin-test != "3.6.1"
  312. irmin-tezos < "3.6.1"
  313. irmin-unix
  314. irmin-watcher
  315. jekyll-format
  316. jose
  317. json-data-encoding >= "0.9"
  318. json-data-encoding-bson >= "1.1.1"
  319. json_decoder
  320. jsonfeed
  321. jsonschema-core
  322. jsonschema-validation
  323. jsonxt
  324. junit_alcotest >= "2.3.0"
  325. jwto
  326. k7
  327. kafka-eio
  328. kaun < "1.0.0~alpha3"
  329. kcas >= "0.6.0"
  330. kcas_data >= "0.6.0"
  331. kdf
  332. ke >= "0.2"
  333. kkmarkdown
  334. kmt
  335. kube
  336. lambda-runtime
  337. lambda_streams
  338. lambda_streams_async
  339. lambdapi
  340. layoutz
  341. letters
  342. liquid_ml >= "0.1.3"
  343. lmdb >= "1.0"
  344. lockfree >= "0.3.1"
  345. logical
  346. logtk
  347. lp
  348. lp-glpk
  349. lp-glpk-js < "0.5.0"
  350. lp-gurobi < "0.5.0"
  351. lru
  352. lt-code
  353. luv
  354. mazeppa
  355. mbr-format
  356. mcp-kit
  357. mcp-kit-cohttp-eio
  358. mcp-kit-eio
  359. mcp-kit-ppx
  360. mdx
  361. mec
  362. mechaml >= "1.2.1"
  363. mehari >= "0.5"
  364. mehari-miou
  365. mehari-mirage >= "0.5"
  366. mel-bastet
  367. melange >= "7.0.0-51"
  368. melange-edn >= "0.5.0"
  369. menhir-lsp >= "0.3.3"
  370. menhirformat
  371. merlin = "4.17.1-501"
  372. merlin-lib >= "4.17.1-501"
  373. metrics
  374. mfat
  375. mfetch
  376. mhttp-client >= "0.0.6"
  377. miaou-core
  378. miaou-serve
  379. middleware
  380. migra
  381. mimic
  382. minicaml = "0.3.1" | >= "0.4"
  383. mirage >= "4.0.0"
  384. mirage-block-partition
  385. mirage-block-ramdisk
  386. mirage-channel >= "4.0.1"
  387. mirage-crypto-ec
  388. mirage-flow-unix
  389. mirage-kv >= "2.0.0"
  390. mirage-kv-mem >= "4.0.1"
  391. mirage-kv-unix >= "3.0.0"
  392. mirage-logs
  393. mirage-nat
  394. mirage-net-unix
  395. mirage-runtime < "4.7.0"
  396. mirage-tc
  397. mjson
  398. mldsa
  399. mlgpx
  400. mlkem
  401. mmdb < "0.3.0"
  402. mnd
  403. modelkit
  404. modelkit-nx
  405. modelkit-parallel
  406. modelkit-talon
  407. modelkit-xgboost
  408. mqtt
  409. mrmime >= "0.2.0"
  410. msgpck >= "1.6"
  411. mssql
  412. multibase
  413. multicore-magic
  414. multihash
  415. multihash-digestif
  416. multipart-form-data
  417. multipart_form
  418. multipart_form-eio
  419. multipart_form-lwt
  420. multipart_form-miou
  421. named-pipe
  422. nanoid
  423. nbd >= "4.0.3"
  424. nbd-tool
  425. nel
  426. neo4j_bolt
  427. neodriver
  428. neodriver_core
  429. neodriver_eio
  430. neodriver_packstream
  431. nloge
  432. nocoiner
  433. noise
  434. non_empty_list
  435. nx < "1.0.0~alpha3"
  436. nx-datasets
  437. nx-text
  438. OCADml >= "0.6.0"
  439. obatcher
  440. object
  441. obs-eio
  442. obs-prometheus-eio
  443. ocaml-ai-sdk
  444. ocaml-index < "5.4.1-503"
  445. ocaml-r >= "0.4.0"
  446. ocaml-version >= "3.5.0"
  447. ocamlformat < "0.25.1"
  448. ocamlformat-lib
  449. ocamlformat-mlx-lib
  450. ocamlformat-rpc < "removed"
  451. ocamline
  452. ocgtk
  453. ochre
  454. ochre-cli
  455. ocluster
  456. ocue
  457. odoc < "2.1.1"
  458. oenv >= "0.1.0"
  459. ohex
  460. ohttp
  461. ohttp-cohttp
  462. ohttp-cohttp-eio
  463. ohttp-cohttp-lwt
  464. ohttp-piaf
  465. oidc
  466. oktree >= "0.2.4"
  467. opam-0install
  468. opam-0install-cudf >= "0.5.0"
  469. opam-compiler
  470. opam-file-format >= "2.1.1"
  471. opam-repomin
  472. opencage
  473. opentelemetry >= "0.7" & != "0.90"
  474. opentelemetry-client
  475. opentelemetry-client-cohttp-eio
  476. opentelemetry-client-cohttp-lwt >= "0.6"
  477. opentelemetry-client-ocurl >= "0.6"
  478. opentelemetry-client-ocurl-lwt
  479. opentelemetry-cohttp-lwt >= "0.6"
  480. opentelemetry-logs
  481. opentelemetry-lwt >= "0.6"
  482. opium
  483. opium-graphql
  484. opium-testing
  485. opium_kernel
  486. orewa
  487. orgeat
  488. ortac-core
  489. ortac-wrapper
  490. osnap < "0.3.0"
  491. osx-acl
  492. osx-attr
  493. osx-cf
  494. osx-fsevents
  495. osx-keychain
  496. osx-membership
  497. osx-mount
  498. osx-xattr
  499. otoggl
  500. owl >= "0.7.0" & < "0.7.2" | = "1.0.2" | >= "1.2"
  501. owl-base < "0.5.0"
  502. owl-ode >= "0.1.0" & != "0.2.0"
  503. owl-rllib
  504. owl-symbolic
  505. ozstd
  506. par_incr
  507. parseff
  508. passe
  509. passmaker
  510. patch
  511. pbkdf
  512. pecu >= "0.2"
  513. pf-qubes
  514. pg_query >= "0.9.6"
  515. pgx
  516. pgx_unix
  517. pgx_value_core
  518. pgx_value_ptime
  519. phylogenetics
  520. piaf
  521. picos < "0.5.0"
  522. picos_meta
  523. pidgin
  524. pidgio
  525. piece_rope
  526. plebeia >= "2.0.0"
  527. polyglot
  528. polymarket
  529. polynomial
  530. ppx_bin_there
  531. ppx_blob >= "0.3.0"
  532. ppx_catch
  533. ppx_deriving_cmdliner
  534. ppx_deriving_ezjsonm
  535. ppx_deriving_qcheck
  536. ppx_deriving_rpc
  537. ppx_deriving_yaml
  538. ppx_deriving_yamlx
  539. ppx_ezlua
  540. ppx_hegel_generator
  541. ppx_hegel_test
  542. ppx_inline_alcotest
  543. ppx_map
  544. ppx_marshal
  545. ppx_mica
  546. ppx_parser
  547. ppx_protocol_conv
  548. ppx_protocol_conv_json
  549. ppx_protocol_conv_jsonm
  550. ppx_protocol_conv_msgpack
  551. ppx_protocol_conv_xml_light
  552. ppx_protocol_conv_xmlm
  553. ppx_protocol_conv_yaml
  554. ppx_repr
  555. ppx_subliner
  556. ppx_units
  557. ppx_yojson >= "1.1.0"
  558. pratter
  559. prbnmcn-ucb1 >= "0.0.2"
  560. prc
  561. preface
  562. pretty_expressive
  563. prettym
  564. primavera >= "1.1.0"
  565. privatus-analytics
  566. privatus-analytics-dream
  567. proc-smaps
  568. producer
  569. progress
  570. prom
  571. prometheus < "1.2"
  572. prometheus-app
  573. prometheus-eio
  574. prometheus-lwt
  575. prometheus-reporter
  576. protocell
  577. protocol-9p < "0.11.0" | >= "0.11.2"
  578. protocol-9p-unix
  579. proton
  580. psq
  581. purl
  582. pxshot
  583. pyast
  584. qcaml
  585. qcheck >= "0.25"
  586. qcheck-alcotest
  587. qcheck-core >= "0.25"
  588. qcow-stream >= "0.13.0"
  589. qcow-tool = "0.13.0"
  590. qcow-types = "0.13.0"
  591. qdrant
  592. querty
  593. query-json
  594. quickjs
  595. quill < "1.0.0~alpha3"
  596. quint-connect
  597. randii
  598. reason-standard
  599. red-black-tree
  600. reparse >= "2.0.0" & < "3.0.0"
  601. reparse-unix < "2.1.0"
  602. resp
  603. resp-unix >= "0.10.0"
  604. resto >= "0.9"
  605. rfc1951 < "1.0.0"
  606. routes != "0.7.0" & < "1.0.0"
  607. rpc
  608. rpclib
  609. rpclib-async
  610. rpclib-lwt
  611. rpmfile < "0.3.0"
  612. rpmfile-eio
  613. rpmfile-unix
  614. rune < "1.0.0~alpha3"
  615. runtime_events_tools >= "0.5.2"
  616. SZXX >= "4.0.0"
  617. saga
  618. salsa20
  619. salsa20-core
  620. sanddb >= "0.2"
  621. saturn != "0.4.1"
  622. saturn_lockfree != "0.4.1"
  623. scrypt-kdf
  624. secp256k1 >= "0.4.1"
  625. secp256k1-internal
  626. secret
  627. semver >= "0.2.1"
  628. sendmail
  629. sendmail-lwt
  630. sendmail-miou-unix
  631. sendmail-mirage
  632. sendmsg
  633. seqes
  634. server-reason-react
  635. session-cookie
  636. session-cookie-async
  637. session-cookie-lwt
  638. sha256-cng
  639. shakuhachi
  640. sherlodoc
  641. sihl >= "0.1.4" & < "0.1.8"
  642. slhdsa
  643. slug
  644. smaws-clients
  645. smaws-lib
  646. smol
  647. smol-helpers
  648. smtml >= "0.30.0"
  649. sodium-fmt
  650. solidity-alcotest
  651. sosie
  652. soteria
  653. sowilo < "1.0.0~alpha3"
  654. spdx_licenses
  655. spectrum >= "0.2.0"
  656. spectrum_capabilities
  657. spectrum_palette_ppx
  658. spectrum_palettes
  659. spectrum_tools
  660. spin >= "0.7.0"
  661. spurs < "0.1.1"
  662. squirrel
  663. ssh-agent
  664. ssl >= "0.6.0"
  665. starred_ml
  666. stem
  667. stramon-lib
  668. stringx
  669. styled-ppx
  670. swapfs
  671. symex >= "0.2"
  672. symphony-orchestrator-tui
  673. synchronizer >= "0.2"
  674. syslog-rfc5424
  675. syto
  676. tabr
  677. talon < "1.0.0~alpha3"
  678. tar-eio >= "3.5.0"
  679. tar-mirage
  680. tbls
  681. tcpip
  682. tdigest < "2.1.0"
  683. tdmrep
  684. term-indexing
  685. term-tools
  686. termaid
  687. terminal
  688. terminal_size >= "0.1.1"
  689. terminus
  690. terminus-cohttp
  691. terminus-hlc
  692. terml
  693. testo < "0.3.4"
  694. testo-lwt
  695. textmate-language >= "0.3.0"
  696. textrazor
  697. thread-table
  698. timedesc
  699. timere
  700. timere-parse >= "0.0.7"
  701. timmy
  702. timmy-jsoo
  703. timmy-lwt
  704. timmy-unix
  705. tiny_appkits
  706. tiny_languages
  707. tiny_libs
  708. tinybox
  709. tls >= "0.12.8"
  710. toc
  711. topojson
  712. topojsone
  713. trail
  714. traits
  715. transept
  716. tsort >= "2.2.0"
  717. tw
  718. twostep
  719. type_eq
  720. type_id
  721. typeid >= "1.0.1"
  722. tyre >= "0.4"
  723. tyxml >= "4.2.0"
  724. tyxml-jsx
  725. tyxml-ppx >= "4.3.0"
  726. tyxml-syntax
  727. ucharset
  728. uecc
  729. ulid
  730. universal-portal
  731. unix-dirent
  732. unix-errno
  733. unix-sys-resource
  734. unix-sys-stat
  735. unix-time
  736. unstrctrd
  737. uring < "0.4"
  738. user-agent-parser
  739. uspf
  740. uspf-lwt
  741. uspf-mirage
  742. uspf-unix
  743. utcp
  744. utop >= "2.13.0"
  745. validate
  746. validator
  747. valkey
  748. vercel
  749. verdict
  750. vhd-format-lwt >= "0.13.0"
  751. wayland >= "2.0"
  752. wcwidth
  753. websocketaf
  754. wire
  755. x509 >= "0.7.0"
  756. xapi-rrd
  757. xapi-stdext-date
  758. xapi-stdext-encodings < "4.22.0"
  759. xapi-stdext-std >= "4.16.0"
  760. xdge
  761. xgboost
  762. xkbcommon
  763. yaml
  764. yaml-sexp
  765. yocaml
  766. yocaml_syndication >= "2.0.0"
  767. yocaml_yaml < "2.0.0"
  768. yojson >= "1.6.0"
  769. yojson-five
  770. yuscii >= "0.3.0"
  771. yuujinchou >= "1.0.0"
  772. zar
  773. zed >= "3.2.2"
  774. 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