[Issue 9726] New: Add minimum % coverage required for -cov testing

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Mar 14 23:41:47 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=9726

           Summary: Add minimum % coverage required for -cov testing
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: bugzilla at digitalmars.com


--- Comment #0 from Walter Bright <bugzilla at digitalmars.com> 2013-03-14 23:41:46 PDT ---
This is a management feature.

Adding an optional value to the -cov switch:

    -cov=78

means that the coverage testing must cover 78% or more of the lines, else a
non-zero exit status is given when the program is run. Values accepted will be
in the range 0..100.

This means a minimum coverage "bar" can be set in the build/test system, and
automatically tested. The current method requires manually looking at the
coverage output, or writing a script to test it, which of course is too much
bother and nobody does it.

If there are multiple modules under -cov, each must meet the bar.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list