Skip to content

Add bisect_ppx_ng for code coverage statistics - #289

Open
hannesm wants to merge 1 commit into
mainfrom
coverage
Open

hannesm wants to merge 1 commit into
mainfrom
coverage

Conversation

@hannesm

@hannesm hannesm commented Sep 21, 2026

Copy link
Copy Markdown
Contributor

How to use?

  • opam install bisect_ppx_ng
  • find . -name '*.coverage' | xargs rm -f
  • dune runtest --instrument-with bisect_ppx_ng --force
  • bisect-ppx-report html
  • browse _coverage/index.html

See https://github.com/Kakadu/bisect_ppx_ng for further details

Please note I wouldn't expect any 100% coverage, but sometimes it is useful to see which conditionals of an endpoint have been visited by the test suite and which not (and then write another test) :)

An example of the report, where green is visited and red is not visited -- looking into the request routing:
image

How to use?
- opam install bisect_ppx_ng
- find . -name '*.coverage' | xargs rm -f
- dune runtest --instrument-with bisect_ppx_ng --force
- bisect-ppx-report html
- browse _coverage/index.html

See https://github.com/Kakadu/bisect_ppx_ng for further details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant