Test coverage is 18.4%

Gervase Markham gerv at mozilla.org
Mon Feb 15 11:22:35 UTC 2010


On 12/02/10 21:54, Max Kanat-Alexander wrote:
> 	Having unit tests for every single method and function in Bugzilla
> would be great, though. The fact is, the lack of TDD in our development
> process is one of the things that makes the review process so difficult.
> But the number of tests that we'd have to write to truly have full
> coverage is also something that's nearly overwhelming for us, because we
> just don't have the current manpower to do it.

Right. Mozilla has exactly the same problem. The way you deal with it is
to make sure the test frameworks are in place, and there are good docs
on writing and running the tests, and then require tests to accompany
all new patches. Tests accidentally/implicitly test more than they are
aimed at anyway, and this way the coverage percentage will rise
organically. When it gets nearer to 90% than 20%, we can look again at
what's necessary to get 100% coverage, if we still think it's worth it.

Gerv
_______________________________________________
dev-apps-bugzilla mailing list
dev-apps-bugzilla at lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-apps-bugzilla



More information about the developers mailing list