Raising the bar on Phobos unittest coverage

Walter Bright newshound2 at digitalmars.com
Fri Jun 21 13:42:19 PDT 2013


On 6/21/2013 2:26 AM, Joseph Rushton Wakeling wrote:
> I think a minimum acceptable threshold is necessary but not sufficient -- say
> your minimum code coverage is 85%, it's still most likely unacceptable if your
> coverage drops (say) from 92% to 87%.

If your minimum acceptable coverage is 92%, why list it as 85%? ????


> Anyway, the main benefit I see in printing the percentages isn't for testing
> purposes (though it's handy) but in advertising the existence and usefulness of
> code coverage analysis, and giving developers a nudge as to where and what to
> work on :-)

The main point of the bar is so there's an automated check for when it drops. 
You don't have to manually look, which will never happen.



More information about the Digitalmars-d mailing list