Raising the bar on Phobos unittest coverage

Walter Bright newshound2 at digitalmars.com
Mon Mar 18 12:09:47 PDT 2013


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.

As for looking into it, examine the report generated - std-file.lst - it'll tell 
you which lines were executed and which were not.


More information about the Digitalmars-d mailing list