Code coverage in Phobos

Basile B. via Digitalmars-d digitalmars-d at puremagic.com
Mon Mar 28 09:10:48 PDT 2016


On Monday, 28 March 2016 at 11:29:55 UTC, Vladimir Panteleev 
wrote:
> Yep. The difficulties are:
>
> 1. Getting data off the autotester. Currently it's nearly 
> impossible, as is making any changes to it.
>
> https://issues.dlang.org/show_bug.cgi?id=14381
>
> 2. Collating data from multiple platforms, as there is a lot of 
> platform-specific code in e.g. std.stdio, std.file, and most of 
> Druntime.

3. since the coverage is computed at run-time by the application 
that runs the tests all the static code (+ CTFE) is considered 
NOT covered. This gives misleading results.

For example std.traits will probably have a bad coverage while 
actually it's pretty good.


More information about the Digitalmars-d mailing list