Unit tests in Frameworks

Alexander Neundorf neundorf at kde.org
Thu Dec 8 20:43:22 UTC 2011


On Tuesday 06 December 2011, Dario Freddi wrote:
> Hello everyone,
> 
> I know some of you are crying blood just by looking at the title, but
> yes, I want to bring this up :)
> 
> I think Frameworks could be a good chance to enhance and force
> requirements regarding unit tests, especially for new code. I am the
> first who apologizes as most of the code I committed to kdelibs didn't
> have unit tests at all, most of the times because the code itself was
> too hard to test (which of course is not a good excuse). AFAIK there
> is no policy (yet) in this regard; if we want to provide even better
> quality with our product, I think we should fix that.
> 
> It would be nice to enable coverage through gcov (I already have some
> cmake code for doing that) and enforce a minimum percentage of
> coverage for each component, maybe dependent on the tier (Tier 1
> requires 90%, Tier 2 75%, etc...). 

I don't think 90% is realistically achievable.

Beside that, great, I'm all for it.

Get in touch e.g. with Marcus Hanwell and Volker Krause, they are also working 
on/interested in it.

Alex


More information about the Kde-frameworks-devel mailing list