Commit Graph

6 Commits

Author SHA1 Message Date
Geert Janssens
84b2428192 Tests: harmonize test initialization
In particular, use qof_init instead of g_type_init. The former
calls the latter by default. Also our current engine code is
heavily dependent on gobject, so it makes sense to initialize it
as early on as possible. Having once central place to do so
will make it easier to fix this if ever we move away from gobject.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22943 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-05-03 12:03:53 +00:00
Phil Longstaff
b6a07f0bfb Add basic budget unit tests
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22253 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-07-01 18:45:51 +00:00
Christian Stimming
3af935d7d2 Fix minor compiler errors of r22127.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22129 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-04-01 19:51:06 +00:00
John Ralls
0fe6e907de Testing: Unit tests for Split.c
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22127 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-03-31 22:12:36 +00:00
Christian Stimming
09461590af Add some unittest for GncInvoice and posting/unposting an invoice.
I thought this would reproduce the crash when unposting a real invoice
with G_SLICE=always-malloc set. However, apparently this test case isn't
complete enough and does not crash. Maybe one needs to add further GncEntries?

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22082 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-03-14 22:26:54 +00:00
John Ralls
f2fcf51cbd [Engine Unit Testing] Unit tests for Account.c
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21525 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-05 23:05:00 +00:00