# Bisect\_ppx 2.0.0 — code coverage for OCaml with nice HTML reports

**URL:** <https://discuss.ocaml.org/t/bisect-ppx-2-0-0-code-coverage-for-ocaml-with-nice-html-reports/5338>\
**Category:** Community\
**Tags:** announce\
**Created:** [March 18, 2020, 12:59pm UTC](https://discuss.ocaml.org/t/bisect-ppx-2-0-0-code-coverage-for-ocaml-with-nice-html-reports/5338 "2020-03-18T12:59:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![antron](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ocaml.org/antron/32/62_2.png) [@antron](https://discuss.ocaml.org/u/antron)\
**Post date:** [March 18, 2020, 12:59pm UTC](https://discuss.ocaml.org/t/bisect-ppx-2-0-0-code-coverage-for-ocaml-with-nice-html-reports/5338/1 "2020-03-18T12:59:52Z")

</div>

I am pleased to announce [release 2.0.0](https://github.com/aantron/bisect_ppx/releases/tag/2.0.0) of [**Bisect\_ppx**](https://github.com/aantron/bisect_ppx), the OCaml coverage tool, which helps you see which parts of your code are not being tested.

  

![sample](https://us1.discourse-cdn.com/flex020/uploads/ocaml/original/2X/1/1911adc6af898b6f4efd7dc69d2c1f90699031ba.gif)

  

This release is a major upgrade. The highlights are:

- Support for BuckleScript, js\_of\_ocaml, and esy. In other words, Bisect\_ppx now compiles to both native code and JS, and is published in both opam and npm.
- The ability to [send reports automatically](https://github.com/aantron/bisect_ppx#Coveralls) from Travis and CircleCI to Coveralls and Codecov. More integrations can be added over time.
- The awkward `(*BISECT-IGNORE*)` comments for excluding code from instrumentation have been replaced by AST attributes like [`[@coverage off]`](https://github.com/aantron/bisect_ppx#Exclusion).
- A new, more principled instrumentation algorithm.
- A new reporter command line based on [Cmdliner](https://erratique.ch/software/cmdliner/doc/Cmdliner). Run `bisect-ppx-report --help` to get started with it.
- Syntax highlighting.

You are invited to peruse the all-new [README](https://github.com/aantron/bisect_ppx#readme) for details 🙂

  

Several features have been deprecated; mostly command-line flags. You can see the list in the _Deprecations_ section of the [changelog](https://github.com/aantron/bisect_ppx/releases/tag/2.0.0). However, it may be easier to simply try using Bisect\_ppx as before — it will warn you if you use a deprecated flag. The deprecated flags will be removed in Bisect\_ppx 2.1.0, expected around July 2020.

  

Happy testing!

  

> **[aantron/bisect\_ppx](https://github.com/aantron/bisect_ppx)**
>
> Code coverage for OCaml and Reason. Contribute to aantron/bisect\_ppx development by creating an account on GitHub.

---

<div class="post-metadata">

**Author:** ![VPhantom](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ocaml.org/vphantom/32/1396_2.png) [@VPhantom](https://discuss.ocaml.org/u/VPhantom)\
**Post date:** [March 18, 2020, 3:41pm UTC](https://discuss.ocaml.org/t/bisect-ppx-2-0-0-code-coverage-for-ocaml-with-nice-html-reports/5338/2 "2020-03-18T15:41:55Z")

</div>

Simply, thank you! Coming from similar tools in other languages, this is going to make me feel right at home in OCaml. 😀

---

<div class="post-metadata">

**Author:** ![leonidr](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ocaml.org/leonidr/32/165_2.png) [@leonidr](https://discuss.ocaml.org/u/leonidr)\
**Post date:** [March 19, 2020, 2:20am UTC](https://discuss.ocaml.org/t/bisect-ppx-2-0-0-code-coverage-for-ocaml-with-nice-html-reports/5338/3 "2020-03-19T02:20:30Z")

</div>

@antron You’ve done great work. Thank you.
