Gtk+ unit tests suite



Hi,

as part of the build-brigade (http://live.gnome.org/BuildBrigade) I have
been working a bit on developing a set of unit tests for Gtk+ using
Check (http://check.sourceforge.net/).

I have set up a temporary modified version of Gtk+ here:

cvs -d :pserver:anonymous cvs igalia com:/var/publiccvs co gtk+

Currently, this modified version includes a small set of unit tests for
several widgets that would grow in ammount if the project seems
interesting to the Gtk+ community.

You can also check a buildbot running continuous integration of this
modified GTK+ and its dependencies here (thanks to dape, another member
of the build-brigade):

http://gtktests-buildbot.igalia.com/

and here you can check the results of the tests for one build (#18):

http://gtktests-buildbot.igalia.com/gtk%2B/gtk%
2B-sarge/builds/18/step-gtk%2B%20make-check.sh/0

You can even check the code coverage statistics obtained from the latest
tests execution (nice to know what code your tests are actually
testing):

http://gtktests-buildbot.igalia.com/gnomeslave/gtk+/lcov/

If you look at the tests logs you will find that a few of them are
failing. I have filed appropriate bugs in bugzilla about them and other
documentation issues that I found while developing these tests:

http://bugzilla.gnome.org/show_bug.cgi?id=357807
http://bugzilla.gnome.org/show_bug.cgi?id=357945
http://bugzilla.gnome.org/show_bug.cgi?id=358116
http://bugzilla.gnome.org/show_bug.cgi?id=358970
http://bugzilla.gnome.org/show_bug.cgi?id=360112
http://bugzilla.gnome.org/show_bug.cgi?id=360131

I would like to know your opinion about this project (the tests),
specially if you think it is interesting enough to be (now or in the
future) inside the official GTK+ repository.

In case you think it is interesting, I would like to know if you have
any recomendations or suggestions about whatever you think might improve
it. Any feedback would be very appreciated.

For those of you that want to play a bit with the tests, just follow
these steps:

# cvs -d :pserver:anonymous cvs igalia com:/var/publiccvs co gtk+
# cd gtk+
# ./autogen.sh
# make

now, if you just want to run my tests:

# cd ut
# make check 2> /dev/null

Otherwise, if you want to run my unit tests and all the other tests that
are already in the GTK+ repository, you can run "make check" from the
root directory instead.

Iago.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]