Bisect_ppx + Js_of_ocaml starter repo
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.