[Bisectppx][bisect] + Jsof_ocaml starter repo

October 21, 2020 ยท View on GitHub

git clone https://github.com/aantron/bisect-starter-jsoo.git
cd bisect-starter-jsoo
opam install -y --deps-only .

BISECT_ENABLE=yes dune build ./tester.bc.js
node _build/default/tester.bc.js
dune exec bisect-ppx-report -- html

These commands generate this coverage report locally in the _coverage/ directory. Use your browser to open _coverage/index.html!

Here is an example of a coverage report for a real-world project.

See aantron/bisect_ppx, especially the Js_of_ocaml instructions.