www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 14464] New: coverage merge doesn't work


          Issue ID: 14464
           Summary: coverage merge doesn't work
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: druntime
          Assignee: nobody puremagic.com
          Reporter: code dawg.eu

Using dmd_coverSetMerge(true) to combine the coverage results of multiple runs
produces garbage numbers, because the code in rt.cover that parses the existing
.lst files is broken [¹].

Enabling merge only works if .lst files already exist, otherwise coverage
generation is silently skipped.

Merging coverage reports should be the default, similar to gcov and dmd's
-prof, as overwriting existing data is rarely useful.


Apr 19 2015