|
|
1d62328 |
# ocaml-bisect-ppx
|
|
|
1d62328 |
|
|
|
eff483a |
[`Bisect_ppx`](https://aantron.github.io/bisect_ppx/) is a code coverage tool
|
|
|
eff483a |
for OCaml. It helps you test thoroughly by showing which parts of your code
|
|
|
eff483a |
are *not* tested. It is a small preprocessor that inserts instrumentation at
|
|
|
eff483a |
places in your code, such as if-then-else and match expressions. After you
|
|
|
eff483a |
run tests, `Bisect_ppx` gives a nice HTML report showing which places were
|
|
|
eff483a |
visited and which were missed.
|
|
|
eff483a |
|
|
|
eff483a |
Usage is simple - add package `bisect_ppx` when building tests, run your
|
|
|
eff483a |
tests, then run the `Bisect_ppx` report tool on the generated visitation
|
|
|
eff483a |
files.
|