[Qt-interest] QtTest support for suites of tests?

Andreas Pakulat apaku at gmx.de
Wed Nov 11 10:04:03 CET 2009


On 10.11.09 14:29:11, KC Jones wrote:
> I'm getting serious about developing unit tests for my code.  I would
> like to use the QtTest library for this, but I'm troubled by the
> shallowness of the tutorial and the lack of 3rd party examples.
> 
> The first thing I would like to do is to extend the QTestLib Manual
> tutorial to include multiple test classes.  I Googled and found
> nothing useful. I searched the archives, and the most interesting
> thread dates back to 2006 and is not at all encouraging:
> http://lists.trolltech.com/qt-interest/2006-04/thread00441-0.html
> 
> Are there any tutorials, docs, wikis... with more information about
> QtTest best practices?  Or is the QTestLib Manual the best / only
> source of information?  Is anyone using QTestLib for serious unit
> testing, or are people using other unit testing frameworks?

Most of the unit-test in KDE's kdelibs module are written using QTest so
that might give you an idea about how to use it. See 
http://websvn.kde.org/trunk/KDE/kdelibs/kdecore/tests
http://websvn.kde.org/trunk/KDE/kdelibs/kdeui/tests
etc. for examples

Andreas

-- 
You will gain money by a fattening action.



More information about the Qt-interest-old mailing list