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 743014 - gtestutils: Add an example of using test fixtures
gtestutils: Add an example of using test fixtures
Status: RESOLVED FIXED
Product: glib
Classification: Platform
Component: docs
unspecified
Other All
: Normal normal
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2015-01-16 09:24 UTC by Philip Withnall
Modified: 2015-01-18 23:04 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
gtestutils: Add an example of using test fixtures (2.76 KB, patch)
2015-01-16 09:24 UTC, Philip Withnall
committed Details | Review

Description Philip Withnall 2015-01-16 09:24:12 UTC
Patch attached. I’m suggesting this example because I’ve never found it especially clear how to write unit tests with fixtures.
Comment 1 Philip Withnall 2015-01-16 09:24:15 UTC
Created attachment 294655 [details] [review]
gtestutils: Add an example of using test fixtures

Add a simple example of a test suite with two unit tests both using the
same fixture.
Comment 2 Colin Walters 2015-01-16 13:37:21 UTC
Review of attachment 294655 [details] [review]:

Looks reasonable to me.
Comment 3 Philip Withnall 2015-01-18 23:04:46 UTC
Attachment 294655 [details] pushed as 11a846b - gtestutils: Add an example of using test fixtures