www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 24452] New: Can't disable coverage at runtime

https://issues.dlang.org/show_bug.cgi?id=24452

          Issue ID: 24452
           Summary: Can't disable coverage at runtime
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: default_357-line yahoo.de

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.

--
Mar 26