[RFC] KUnitTest library
Jeroen Wijnhout
Jeroen.Wijnhout at kdemail.net
Thu Apr 7 08:33:03 BST 2005
Hi all,
The last couple of days I've been working on a GUI for the KUnitTest framework
in kdenonbeta/kunittest. In doing so I modified the original framework in
such a way that it is even easier to use than it was (imho). All of the
unittesting facilities are put in a shared library you can link to, so that
adding new tests is really easy.
Features:
* Easy to add new tests, just make a new class that inherits KUnitTest::Tester
and use the KUNITTEST_REGISTER_TESTER macro. The test will then be picked up
by the library automatically.
* The GUI allows you to browse and review the test results quickly.
* Any debug output is added to the test results, this makes it easier to debug
failed tests.
* Double clicking on a line in the test report will open the file at the
corresponding line in KDevelop.
* You don't have to run all tests, it is just as easy to run only one test.
* The source code provides an example which you can copy/paste.
I was hoping that this library could eventually make it into kdesdk, as it can
be quite useful to developers. Before that it probably needs a bit more
testing by other developers.
There is a litte webpage about KUnitTest where you can download the tarball,
view screenshots and browse the documentation:
http://kile.sourceforge.net/kunittest/
best,
Jeroen Wijnhout
--
Kile - an Integrated LaTeX Environment for KDE
http://kile.sourceforge.net
More information about the kde-core-devel
mailing list