[RFC] KUnitTest library

Jeroen Wijnhout Jeroen.Wijnhout at kdemail.net
Fri Apr 8 12:05:31 BST 2005


On Thursday 07 April 2005 11:05 pm, Brad Hards wrote:
> On Thu, 7 Apr 2005 23:10 pm, Hans Oischinger wrote:
> > I always thought I was the only one using Zack's kunittest classes :)
>
> You aren't the only one - I'm using it for QCA (hacked to not require KDE).
> See kdesupport/qca/unittest/
>
> > What annoys me most about it currently is not the lack of a gui (actually
> > I prefer a terminal) but the chaotic mix of my debug out and the test
> > output. A GUI would help a lot here.
>
> I don't find that - my tests are silent except on failure. To me, GUI
> implies user interaction, but unit tests are supposed to be automated. It

Guess that everybody uses the unittests in different ways. Please note that 
the way I'm setting the KUnitTest library up allows you to use it without a 
GUI as well.

> > Unifying testing in KDE is of course also a good thing. I don't see much
> > problems in linking against a library.
>
> I don't see the gain.

Well, there are some (although perhaps you just don't care about those):
* code sharing
* you automatically benefit from improvements in the library
* you don't have to edit the kunittest.cpp file

best,
Jeroen
-- 
Kile - an Integrated LaTeX Environment for KDE
http://kile.sourceforge.net




More information about the kde-core-devel mailing list