GNOME Bugzilla – Bug 385787
Gtk+ and GLib need unit tests
Last modified: 2008-06-04 14:55:05 UTC
Gtk+ and GLib need unit tests that cover all individual components (i.e. widgets) and all the interwoven subsystems (widget properties, style properties, container properties, signals). For that, a lean testing framework is required that allowes easy test writing and automated testing. A relevant discussion has been spawned on gtk-devel-list here: http://mail.gnome.org/archives/gtk-devel-list/2006-October/msg00093.html
Fixed by committs late last year, e.g.: Thu Nov 15 13:11:39 2007 +0100 Tim Janik Added unit tests for Gtk+ testing utilities. * gtk/tests/testing.c: added a sample test program that tests Gtk+ test utility functions. some g_test_* related portions are disabled and need to be enabled once Gtk+ depends on a new glib with the GLib testing framework integrated. * gtk/tests/Makefile.am: new subdirectory to include quick Gtk+ tests. added exemplary test rules to run tests inside Xvfb. this needs to depend on gtester for full fledged testing. * gtk/Makefile.am: build gtk+/gtk/tests, define -DGTK_ENABLE_BROKEN when collecting _get_type functions to catch e.g. gtk_text_get_type(). * configure.in: create gtk/tests/Makefile.in and gtk/tests/Makefile.