You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gnucash/libgnucash/engine/test
John Ralls 115d61e7f3
Remove test for transaction set-date diagnostic message.
9 years ago
..
CMakeLists.txt Fix a number of test mismatches between cmake and autotools 9 years ago
Makefile.am Restructure the src directory 9 years ago
README Restructure the src directory 9 years ago
dummy.cpp Restructure the src directory 9 years ago
gtest-gnc-datetime.cpp Fix time-string format in backend for GncDateTime(std::string). 9 years ago
gtest-gnc-int128.cpp Restructure the src directory 9 years ago
gtest-gnc-numeric.cpp Restructure the src directory 9 years ago
gtest-gnc-rational.cpp Restructure the src directory 9 years ago
gtest-gnc-timezone.cpp Restructure the src directory 9 years ago
gtest-import-map.cpp Restructure the src directory 9 years ago
test-account-object.cpp Restructure the src directory 9 years ago
test-account.scm Restructure the src directory 9 years ago
test-address.c Restructure the src directory 9 years ago
test-business.c Restructure the src directory 9 years ago
test-commodities.cpp Restructure the src directory 9 years ago
test-create-account.in Restructure the src directory 9 years ago
test-create-account.scm Restructure the src directory 9 years ago
test-customer.c Restructure the src directory 9 years ago
test-date.cpp Restructure the src directory 9 years ago
test-employee.c Restructure the src directory 9 years ago
test-engine-kvp-properties.c Restructure the src directory 9 years ago
test-engine.c Restructure the src directory 9 years ago
test-extras.scm Restructure the src directory 9 years ago
test-gnc-date.c Restructure the src directory 9 years ago
test-gnc-guid-old.cpp Restructure the src directory 9 years ago
test-gnc-guid.cpp Restructure the src directory 9 years ago
test-gnc-uri-utils.c Restructure the src directory 9 years ago
test-group-vs-book.cpp Restructure the src directory 9 years ago
test-guid.cpp Restructure the src directory 9 years ago
test-job.c Restructure the src directory 9 years ago
test-kvp-frame.cpp Restructure the src directory 9 years ago
test-kvp-value.cpp Restructure the src directory 9 years ago
test-link.c Restructure the src directory 9 years ago
test-load-engine.c Restructure the src directory 9 years ago
test-lots.cpp Restructure the src directory 9 years ago
test-numeric.cpp Restructure the src directory 9 years ago
test-object.c Restructure the src directory 9 years ago
test-qof-string-cache.c Restructure the src directory 9 years ago
test-qof.c Restructure the src directory 9 years ago
test-qofbackend.c Restructure the src directory 9 years ago
test-qofbook.c Restructure the src directory 9 years ago
test-qofinstance.cpp Restructure the src directory 9 years ago
test-qofobject.c Restructure the src directory 9 years ago
test-qofsession-old.cpp Restructure the src directory 9 years ago
test-qofsession.cpp Restructure the src directory 9 years ago
test-query.cpp Restructure the src directory 9 years ago
test-querynew.c Restructure the src directory 9 years ago
test-recurrence.c Restructure the src directory 9 years ago
test-scm-query-import.in Restructure the src directory 9 years ago
test-scm-query-import.scm Restructure the src directory 9 years ago
test-scm-query.cpp Restructure the src directory 9 years ago
test-split-vs-account.cpp Restructure the src directory 9 years ago
test-split.scm Restructure the src directory 9 years ago
test-test-extras.scm Restructure the src directory 9 years ago
test-transaction-reversal.cpp Restructure the src directory 9 years ago
test-transaction-voiding.cpp Restructure the src directory 9 years ago
test-vendor.c Restructure the src directory 9 years ago
utest-Account.cpp Restructure the src directory 9 years ago
utest-Budget.c Restructure the src directory 9 years ago
utest-Entry.c Restructure the src directory 9 years ago
utest-Invoice.c Restructure the src directory 9 years ago
utest-Split.cpp Restructure the src directory 9 years ago
utest-Transaction.cpp Remove test for transaction set-date diagnostic message. 9 years ago
utest-gnc-pricedb.c Restructure the src directory 9 years ago

README


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."