-
Notifications
You must be signed in to change notification settings - Fork 550
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Revive coverage testing, first steps #6142
Conversation
Deploy preview for mina-staging ready! Built with commit e7833c7 |
By coincidence I was just researching bisect_ppx. If I understand the source (register.ml), the Plus it looks like the plan is to deprecate |
I don't believe so. The code reads: ("--conditional",
Arg.Set conditional,
" Instrument only when BISECT_ENABLE is YES"); If Now that this PR is merged, I rebuilt from
It will be easy enough to update the dune files and scripts when things change. The example in the dune docs that uses |
On Fri, Sep 25, 2020 at 8:02 PM psteckler ***@***.***> wrote:
If I understand the source (register.ml
<https://github.com/aantron/bisect_ppx/blob/master/src/ppx/register.ml?rgh-link-date=2020-09-26T00%3A40%3A04Z>),
the --conditional flag *unconditionally* enables the lib. Similarly the
env var BISECT_ENABLE=YES unconditionally enables.
I don't believe so. The code reads:
("--conditional",
Arg.Set conditional,
" Instrument only when BISECT_ENABLE is YES");
If --conditional is given, then instrumentation only happens when the env
var is set.
Oh good grief. I misread ` match !conditional with` - OCaml uses '!' as
the defer operator, not the negation operator. How embarrassing/annoying!
Sorry about the noise.
G
… |
First step in reviving unit test coverage.
Update
bisect_ppx
inopam.export
(and some other libraries).Add script to generate coverage files. Update Makefile to invoke that script, which generates coverage files for all libraries. You can call the script with just the libraries you want coverage for, if desired.
Change
-conditional
flag in dune preprocessing clauses to--conditional
.This PR addresses some of the tasks listed in #6090.