On 7/24/2015 3:07 PM, Jonathan M Davis wrote:
If so, they have no excuse. D has made it ridiculously easy to unit test your
code. And I very much doubt that 99% of D users don't unit test their code.

D has done a great job of making unit tests the rule, rather than the exception.

There are cases where 100% isn't possible - e.g. because of an assert(0) or
because you're dealing with UI code or the like where it simply isn't usable
without running the program - but even then, the test coverage should be as
close to 100% as can be achieved, which isn't usually going to be all that far
from 100%.

We should be ashamed when our code is not as close to 100% code coverage as is
feasible (which is usually 100%).

Right on, Jonathan!

Reply via email to