Comment #0 by default_357-line — 2024-03-26T14:02:20Z
We have a unittest runner built with `-cov`. However, in a separate build step we run it once for every test in isolation. In that case, the test takes 20ms - but merging coverage takes 500ms. (It's a pretty big binary.)
It would be good to have a runtime flag to suppress coverage writing.
Comment #1 by dlang-bot — 2024-03-26T14:06:38Z
@FeepingCreature updated dlang/dmd pull request #16336 "Add `--DRT-covopt="disable:1"` to suppress writing coverage at runtime." fixing this issue:
- Fix Bugzilla issue 24452: Add `--DRT-covopt="disable:1"` to suppress writing coverage at runtime.
This is useful if you don't want to rebuild a binary just to have coverage on or off.
https://github.com/dlang/dmd/pull/16336
Comment #2 by dlang-bot — 2024-03-30T20:59:20Z
dlang/dmd pull request #16336 "Add `--DRT-covopt="disable:1"` to suppress writing coverage at runtime." was merged into master:
- 212e5cf779a6fa2636a3289f361d468546c7207f by Mathis Beer:
Fix Bugzilla issue 24452: Add `--DRT-covopt="disable:1"` to suppress writing coverage at runtime.
This is useful if you don't want to rebuild a binary just to have coverage on or off.
https://github.com/dlang/dmd/pull/16336