www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 18745] New: Custom coverage reporter in core.runtime


          Issue ID: 18745
           Summary: Custom coverage reporter in core.runtime
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: druntime
          Assignee: nobody puremagic.com
          Reporter: andre s-e-a-p.de

I want to set a custom coverage reporter in core.runtime to generate e.g. a
Cobertura XML instead of multiple lst files.

My current workaround is to generate the XML based on the lst files and the DMD
-X JSON file after the test executable run. The -X JSON file I need to get the
distinct module name for each lst module file.

Similar to existing Dub unittest libraries (d-unit, unit-threaded, ...) this
would  allow to have custom code coverage reporters as dub libraries.

Apr 08 2018