gnucash/libgnucash/engine/test
2020-01-02 14:02:04 +01:00
..
CMakeLists.txt Add scm-srfi64-extras and scm-qif-import as check dependencies 2019-08-27 11:50:25 -07:00
dummy.cpp Restructure the src directory 2017-08-10 18:45:00 +02:00
gtest-gnc-datetime.cpp Bug 797067 - Date displayed incorrectly in register take two. 2019-02-08 11:56:32 -08:00
gtest-gnc-int128.cpp Bug 796949 - Fix division and rounding of zero. 2019-05-11 23:23:59 +01:00
gtest-gnc-numeric.cpp Correctly parse decimals between 0 and -1. 2019-08-25 15:50:29 -07:00
gtest-gnc-rational.cpp Restructure the src directory 2017-08-10 18:45:00 +02:00
gtest-gnc-timezone.cpp Bug 795405 - All Dates in Price Database Off-By-One After 3.0 Upgrade 2018-04-27 15:00:28 -07:00
gtest-import-map.cpp Fix the gtests for the changes made to ImapInfo structure 2018-03-29 17:57:24 +01:00
gtest-qofquerycore.cpp Add a few unit tests for qofquerycore 2018-04-26 23:06:36 +02:00
README Restructure the src directory 2017-08-10 18:45:00 +02:00
srfi64-extras.scm srfi64-extras.scm: centralize (gnc:test-runner) 2018-05-10 13:19:03 +08:00
test-account-object.cpp kvp frame to template and correcting failure macro 2017-12-21 07:39:32 -05:00
test-account.scm [engine-utilities] deprecate account utility functions 2019-02-20 22:47:03 +08:00
test-address.c Prevent gcc from searching config.h in the current directory 2017-10-26 14:05:17 +02:00
test-business-core.scm [test-business-core] initial commit 2019-07-19 02:50:24 +08:00
test-business.c Prevent gcc from searching config.h in the current directory 2017-10-26 14:05:17 +02:00
test-commodities.cpp Prevent gcc from searching config.h in the current directory 2017-10-26 14:05:17 +02:00
test-create-account.scm Restructure the src directory 2017-08-10 18:45:00 +02:00
test-customer.c Restructure the src directory 2017-08-10 18:45:00 +02:00
test-employee.c Restructure the src directory 2017-08-10 18:45:00 +02:00
test-engine-kvp-properties.c Fix memory leak using qof_instance_get on a GncGUID 2018-09-09 22:50:05 +02:00
test-engine.c Enable gnc-uri test suite 2018-12-27 20:53:33 +01:00
test-extras.scm Bug 797326 - Enhancement: budget's Estimate tool should ignore Closing Entries 2019-10-25 18:27:47 +08:00
test-gnc-date.c test_gnc_setlocale: use trailing whitespaces 2020-01-02 14:02:04 +01:00
test-gnc-guid-old.cpp Housekeeping - replace plenty of http links with https 2019-06-06 15:52:30 +02:00
test-gnc-guid.cpp Housekeeping - replace plenty of http links with https 2019-06-06 15:52:30 +02:00
test-gnc-uri-utils.c gnc-uri - refer to 'scheme' instead of 'protocol' as that's the more formal term used in uris 2018-12-27 22:33:17 +01:00
test-group-vs-book.cpp Prevent gcc from searching config.h in the current directory 2017-10-26 14:05:17 +02:00
test-guid.cpp Prevent gcc from searching config.h in the current directory 2017-10-26 14:05:17 +02:00
test-job.c Restructure the src directory 2017-08-10 18:45:00 +02:00
test-kvp-frame.cpp Housekeeping - replace plenty of http links with https 2019-06-06 15:52:30 +02:00
test-kvp-value.cpp Housekeeping - replace plenty of http links with https 2019-06-06 15:52:30 +02:00
test-link.c Restructure the src directory 2017-08-10 18:45:00 +02:00
test-load-engine.c Prevent gcc from searching config.h in the current directory 2017-10-26 14:05:17 +02:00
test-lots.cpp Prevent gcc from searching config.h in the current directory 2017-10-26 14:05:17 +02:00
test-numeric.cpp Bug 796820 - References to 'Gnome Bugzilla' should be changed to 'GnuCash Bugzilla' 2018-09-28 15:00:43 +02:00
test-object.c Prevent gcc from searching config.h in the current directory 2017-10-26 14:05:17 +02:00
test-qof-string-cache.c Prevent gcc from searching config.h in the current directory 2017-10-26 14:05:17 +02:00
test-qof.c Bug 796989 - some date/time does not honor user locale (bis). 2019-02-19 09:49:56 -08:00
test-qofbackend.c Restructure the src directory 2017-08-10 18:45:00 +02:00
test-qofbook.c Don't create 2 new books for every new session. 2018-09-23 16:42:11 -07:00
test-qofinstance.cpp Timespec removal, engine odds-and-ends. 2018-08-13 11:52:43 -07:00
test-qofobject.c Prevent gcc from searching config.h in the current directory 2017-10-26 14:05:17 +02:00
test-qofsession-old.cpp Prevent gcc from searching config.h in the current directory 2017-10-26 14:05:17 +02:00
test-qofsession.cpp Housekeeping - replace plenty of http links with https 2019-06-06 15:52:30 +02:00
test-query.cpp Prevent gcc from searching config.h in the current directory 2017-10-26 14:05:17 +02:00
test-querynew.c Prevent gcc from searching config.h in the current directory 2017-10-26 14:05:17 +02:00
test-recurrence.c Prevent gcc from searching config.h in the current directory 2017-10-26 14:05:17 +02:00
test-scm-query-import.scm Restructure the src directory 2017-08-10 18:45:00 +02:00
test-scm-query.cpp Prevent gcc from searching config.h in the current directory 2017-10-26 14:05:17 +02:00
test-split-vs-account.cpp Prevent gcc from searching config.h in the current directory 2017-10-26 14:05:17 +02:00
test-split.scm [engine-utilities] deprecate split utility functions 2019-02-20 22:47:01 +08:00
test-transaction-reversal.cpp Prevent gcc from searching config.h in the current directory 2017-10-26 14:05:17 +02:00
test-transaction-voiding.cpp Transaction getVoidTime uses time64. 2018-01-08 13:01:29 +11:00
test-vendor.c Restructure the src directory 2017-08-10 18:45:00 +02:00
utest-Account.cpp Remove Timespec from pricedb. 2018-08-13 11:52:42 -07:00
utest-Budget.c Remove Timespec from pricedb. 2018-08-13 11:52:42 -07:00
utest-Entry.c A more detailed revision of gncEntry and gncInvoice related rounding 2018-05-24 18:53:15 +02:00
utest-gnc-pricedb.c Housekeeping - replace plenty of http links with https 2019-06-06 15:52:30 +02:00
utest-Invoice.c Fix gncInvoice test failure. 2018-08-06 14:49:07 -07:00
utest-Split.cpp Housekeeping - replace plenty of http links with https 2019-06-06 15:52:30 +02:00
utest-Transaction.cpp Fix test_xaccTransEqual. 2019-10-23 20:09:40 +08:00

This directory contains unit test cases to exercise basic 
GnuCash engine functions.

To run the tests, just do 'make check'


Notes on test of dirty/clean flag:
---------------------------------
This test is currently performed in part in
test-customer
test-employee
test-job
test-vendor

The test cases will check if the dirty flag is unset on creation
of an object and if the dirty flag is set when the object
is modified.

There used to be a test also to check if the dirty flag is
cleared again upon committing the change.
This test has been removed, because it can only be successful
if a backend is set up. That's because the 'dirty' flag is
supposed to be cleared by the backend only.

We are in the engine test code however. In here it's not possible
to load a backend without creating some circular dependencies
between gnucash modules.

Just for completeness, this was said on the dirty flag tests before
these test cases got moved to the engine:
"An object cannot be marked 'clean' unless it has actually
been saved to a file or sql db.  (Or, in the case of the file 
backend, the 'dirtiness' of the data has been duly noted, and
will be taken care of for the next file save. 
Until its saved, it lives in perpetual dirtiness.  Thus, the 
test cases need to specify a backend, then do the commit, 
then test the dirty flag.

Actually, the use of the dirty flag in gnucash is, at this time,
mildly ambiguous, and its semantics are not clearly defined."