Raising the bar on Phobos unittest coverage
Jonathan M Davis
jmdavisProg at gmx.com
Mon Mar 18 13:30:19 PDT 2013
On Monday, March 18, 2013 12:09:47 Walter Bright wrote:
> On 3/18/2013 11:12 AM, Jonathan M Davis wrote:
> > On Monday, March 18, 2013 17:34:12 Martin Nowak wrote:
> >> Can someone look into std.file's unittests. They use 60% (32s/50s) of
> >> the unittest RUNtime on my machine.
> >
> > My first guess would be that you're running a different OS from Walter and
> > that OS-specific code counts as not being run when you run it on a
> > different OS.
> Code that is statically compiled out is not counted as executable code by
> the coverage analyzer.
Then it was a bad guess. Good to know (and better behavior that way really).
> As for looking into it, examine the report generated - std-file.lst - it'll
> tell you which lines were executed and which were not.
Yeah, looking into it should be straigtforward. It just means taking the time
to do it.
- Jonathan M Davis
More information about the Digitalmars-d
mailing list