After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 385787 - Gtk+ and GLib need unit tests
Gtk+ and GLib need unit tests
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: .General
unspecified
Other All
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2006-12-14 10:02 UTC by Tim Janik
Modified: 2008-06-04 14:55 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Tim Janik 2006-12-14 10:02:08 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
Comment 1 Tim Janik 2008-06-04 14:55:05 UTC
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.