www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 1587] New: improvments to std.cover

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1587

           Summary: improvments to std.cover
           Product: D
           Version: 1.018
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: patch
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: shro8822 vandals.uidaho.edu


Included is a path that allows for a program to dump coverage data
programmatically (before the end of the run) with an extra name tag and also to
zero the counters programmatically.

the idea is to use it like this

unittest
{
std.cover.Wipe()
scope(exit) std.cover.Dump("Unittest.somthing.");

// unittest for something
}

the you get cov for just that unittest in it's own set of files.


-- 
Oct 16 2007
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1587






Created an attachment (id=194)
 --> (http://d.puremagic.com/issues/attachment.cgi?id=194&action=view)
the patch

a patch to std.cover to add some more functionality


-- 
Oct 16 2007
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1587


shro8822 vandals.uidaho.edu changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------

           obsolete|                            |





Created an attachment (id=211)
 --> (http://d.puremagic.com/issues/attachment.cgi?id=211&action=view)
a new patch for the same change

this patch works with new version of cover.d. Its also is made using SVN so it
should be easy to use.


-- 
Nov 29 2007
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1587


bugzilla digitalmars.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |enhancement




-- 
Dec 09 2008