gnucash/libgnucash/engine/test
Christopher Lam 4f98391a27 test-TR: unit tests
initial attempt
2018-03-01 20:55:17 +08:00
..
CMakeLists.txt Move direct check dependencies to the originating CMakeLists.txt. 2018-02-18 22:16:27 -08:00
dummy.cpp Restructure the src directory 2017-08-10 18:45:00 +02:00
gtest-gnc-datetime.cpp Save Changes Bug 792106 - Wrong dates displayed 2018-01-09 14:58:43 -08:00
gtest-gnc-int128.cpp Restructure the src directory 2017-08-10 18:45:00 +02:00
gtest-gnc-numeric.cpp Use a more appropriate comparison for doubles. 2018-01-16 17:24:29 -08:00
gtest-gnc-rational.cpp Restructure the src directory 2017-08-10 18:45:00 +02:00
gtest-gnc-timezone.cpp Bug 790845 - 2.7.3: massive test failures on some architectures (reopened). 2018-01-14 16:31:22 -08:00
gtest-import-map.cpp Changed bayes import map design 2017-12-21 07:39:33 -05:00
README Restructure the src directory 2017-08-10 18:45:00 +02:00
test-account-object.cpp kvp frame to template and correcting failure macro 2017-12-21 07:39:32 -05:00
test-account.scm Restructure the src directory 2017-08-10 18:45:00 +02:00
test-address.c Prevent gcc from searching config.h in the current directory 2017-10-26 14:05:17 +02: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-date.cpp Removing timspec from some xml parsing 2018-01-08 13:01:29 +11:00
test-employee.c Restructure the src directory 2017-08-10 18:45:00 +02:00
test-engine-kvp-properties.c Restructure the src directory 2017-08-10 18:45:00 +02:00
test-engine.c Restructure the src directory 2017-08-10 18:45:00 +02:00
test-extras.scm test-TR: unit tests 2018-03-01 20:55:17 +08:00
test-gnc-date.c Removing timspec from some xml parsing 2018-01-08 13:01:29 +11:00
test-gnc-guid-old.cpp Restructure the src directory 2017-08-10 18:45:00 +02:00
test-gnc-guid.cpp Fix travis test failure: It seems the boost bug is fixed. 2018-01-07 16:46:25 -08:00
test-gnc-uri-utils.c Prevent gcc from searching config.h in the current directory 2017-10-26 14:05:17 +02: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 Fix -Wsign-compare error. 2017-12-30 13:39:55 -08:00
test-kvp-value.cpp Restructure the src directory 2017-08-10 18:45:00 +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 Prevent gcc from searching config.h in the current directory 2017-10-26 14:05:17 +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 Prevent gcc from searching config.h in the current directory 2017-10-26 14:05:17 +02:00
test-qofbackend.c Restructure the src directory 2017-08-10 18:45:00 +02:00
test-qofbook.c Prevent gcc from searching config.h in the current directory 2017-10-26 14:05:17 +02:00
test-qofinstance.cpp Remove tests checking members of deleted objects. 2018-01-16 17:24:29 -08: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 Enforce -Werror on C++ files and fix resulting errors. 2017-12-26 15:18:43 -08: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 TP->T64: libgnucash/engine/test/test-split.scm 2018-01-08 22:56:49 +11:00
test-test-extras.scm Restructure the src directory 2017-08-10 18:45:00 +02: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 kvp frame to template and correcting failure macro 2017-12-21 07:39:32 -05:00
utest-Budget.c timespec->time64 for gnc_budget_get_period... 2018-01-08 13:01:29 +11:00
utest-Entry.c gncEntry members timespec->time64 2018-01-08 13:01:29 +11:00
utest-gnc-pricedb.c Change gnc_pricedb_convert_balance_nearest_price from timespec to time64. 2018-01-20 16:40:45 -08:00
utest-Invoice.c gncInvoice uses time64 2018-01-08 13:01:29 +11:00
utest-Split.cpp Transaction members Timespec->time64 2018-01-08 13:01:29 +11:00
utest-Transaction.cpp Merge Chris Lam's and Aaron Laws's branch 'time64-ftw' into unstable. 2018-01-20 12:40:32 -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."