# \[ANN\] Alcotest 1.5.0

**URL:** <https://discuss.ocaml.org/t/ann-alcotest-1-5-0/8613>\
**Category:** Ecosystem\
**Tags:** alcotest, announce\
**Created:** [October 12, 2021, 8:35am UTC](https://discuss.ocaml.org/t/ann-alcotest-1-5-0/8613 "2021-10-12T08:35:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![CraigFe](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ocaml.org/craigfe/32/1989_2.png) [@CraigFe](https://discuss.ocaml.org/u/CraigFe)\
**Post date:** [October 12, 2021, 8:35am UTC](https://discuss.ocaml.org/t/ann-alcotest-1-5-0/8613/1 "2021-10-12T08:35:16Z")

</div>

I’m pleased to announce the release of [Alcotest](https://github.com/mirage/alcotest/) 1.5.0, now available on Opam.

This release includes:

- **JavaScript compatibility** ([#326](https://github.com/mirage/alcotest/pull/326)), via `js_of_ocaml.3.11.0`. Projects that build with `js_of_ocaml` can now use the regular `alcotest` package to test their JavaScript-compatible libraries. For users of `dune`, this is as easy as adding `(modes ... js)` to your `test` stanzas (to build the JavaScript targets) and a corresponding `rule` to run the output:

- **Backtrace collection by default** ([#317](https://github.com/mirage/alcotest/pull/317)). The Alcotest runner now enables backtrace collection by default, ensuring that failing native tests always come with backtraces without any need to set `OCAMLRUNPARAM=b`.

- **A stable `Alcotest.V1` module** ([#306](https://github.com/mirage/alcotest/pull/306)). This module is very similar to the existing top-level `Alcotest` module, but provides some stability guarantee across major versions. It’s intended to provide a migration path for an eventual “Alcotest 2” to make improvements on the existing API.

The full changelog is available [here](https://github.com/mirage/alcotest/releases/tag/1.5.0).

---

<div class="post-metadata">

**Author:** ![lambda\_foo](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ocaml.org/lambda_foo/32/275_2.png) [@lambda\_foo](https://discuss.ocaml.org/u/lambda_foo)\
**Post date:** [October 12, 2021, 10:55pm UTC](https://discuss.ocaml.org/t/ann-alcotest-1-5-0/8613/2 "2021-10-12T22:55:50Z")

</div>

I’m only seeing 1.4 at [opam - alcotest](https://opam.ocaml.org/packages/alcotest/) but I can see the package PR got merged here. [[new release] alcotest, alcotest-async, alcotest-js, alcotest-mirage and alcotest-lwt (1.5.0) by CraigFe · Pull Request #19735 · ocaml/opam-repository · GitHub](https://github.com/ocaml/opam-repository/pull/19735)

---

<div class="post-metadata">

**Author:** ![mseri](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ocaml.org/mseri/32/91_2.png) [@mseri](https://discuss.ocaml.org/u/mseri)\
**Post date:** [October 13, 2021, 8:09am UTC](https://discuss.ocaml.org/t/ann-alcotest-1-5-0/8613/3 "2021-10-13T08:09:14Z")

</div>

The service serving the opam repository is down, works to bring it back to life and also to update it for good to something more stable are ongoing. The easiest workaround is to temporarily use git: [Package index on opam.ocaml.org outdated? - #2 by rjbou](https://discuss.ocaml.org/t/package-index-on-opam-ocaml-org-outdated/8421/2)
