fpc/packages/fcl-db/tests
2011-03-27 16:19:36 +00:00
..
database.ini.txt
dbftoolsunit.pas * Patch from Luiz Americo to fix a double pathdelim in filename, bug #16737 2010-06-30 18:29:41 +00:00
dbtestframework.pas * Fixed support of TFmtBcd fields for sqlite3, bug #16853 2011-02-20 18:22:06 +00:00
Makefile + i386/iphonesim target for the new iPhoneSimulator in Xcode 3.2.4 and 2010-09-29 21:56:47 +00:00
Makefile.fpc * SQL parser 2010-08-16 23:13:24 +00:00
memdstoolsunit.pas
README.txt
sdfdstoolsunit.pas
sqldbtoolsunit.pas * BigInt is already set by default since r16882 2011-03-27 16:19:36 +00:00
tcgensql.pas * Added tests for Grant/Revoke, fixed some bugs on the way 2010-09-03 17:01:01 +00:00
tcparser.pas * Added tests for Grant/Revoke, fixed some bugs on the way 2010-09-03 17:01:01 +00:00
tcsqlscanner.pas * Added tests for Grant/Revoke, fixed some bugs on the way 2010-09-03 17:01:01 +00:00
testbasics.pas
testbufdatasetstreams.pas * Moved TDBBasicsTestSetup to toolsunit 2010-06-04 10:44:08 +00:00
testdatasources.pas
testdbbasics.pas * Added test for ftTime fields 2011-02-24 22:15:46 +00:00
testdddiff.pp
testfieldtypes.pas * Use 'BIGINT'to test largeintfields by default, bug #18649 2011-02-06 14:09:12 +00:00
testsqlfiles.lpi * SQL parser 2010-08-16 23:13:24 +00:00
testsqlfiles.lpr * SQL parser 2010-08-16 23:13:24 +00:00
testsqlscanner.lpi * Added tests for Grant/Revoke, fixed some bugs on the way 2010-09-03 17:01:01 +00:00
testsqlscanner.lpr * SQL parser 2010-08-16 23:13:24 +00:00
testsqlscript.pas
toolsunit.pas * Added test for ftTime fields 2011-02-24 22:15:46 +00:00

This directory contains a framework to test several TDataset descendents.

The framework is based on the fpcunit unit-test system. The tests can be
executed using any fpcunit-testrunner. For example the console and graphical
fpcunit-test runners from Lazarus.
Simply add the test* units in this directory to the uses statement of the
test-runner and all tests will get registered and executed.

An simple test-runner (dbtestframework.pas) which generates XML-output is
included in this directory.

To test a TDataset descendent, a 'connector' is needed to test the database.
To add a new connector, add it to the uses-section in 'toolsunit.pas'. Several
connectors are available in the '*toolsunit.pas' files.

Which connector is currently used is dependent on the 'database.ini'
configuration file. Also some settings which are connector-dependent can be set
in that file. See 'database.ini.txt' for an example.

I hope this is enough information to get you started,

Joost van der Sluis (30-12-2006)