fpc/packages/fcl-db/tests
marco 9b6a69502c * Use double for mysql ftfloat related tests.
Patches by Lacak2, Mantis #21388

git-svn-id: trunk@20456 -
2012-03-01 11:34:47 +00:00
..
bufdatasettoolsunit.pas * add bufdataset to test framework, Mantis #20081, patch by bigchimp 2011-10-15 16:09:54 +00:00
database.ini.txt * add bufdataset to test framework, Mantis #20081, patch by bigchimp 2011-10-15 16:09:54 +00:00
dbfexporttest.lpi * Testcase for DBF export 2011-09-06 10:16:56 +00:00
dbfexporttest.lpr * Testcase for DBF export 2011-09-06 10:16:56 +00:00
dbfexporttestcase1.pas * patch from BigChimp, fixing dbf related testing of output, from 2011-09-25 19:52:10 +00:00
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 * add bufdataset to test framework, Mantis #20081, patch by bigchimp 2011-10-15 16:09:54 +00:00
Makefile * Regenned all makefiles before 2.6.x branching. 2011-08-03 13:41:52 +00:00
Makefile.fpc * SQL parser 2010-08-16 23:13:24 +00:00
memdstoolsunit.pas
README.txt * small rewording and enhancement of readme.txt, Patch by Bigchimp, Mantis #20079 2011-08-28 14:43:00 +00:00
sdfdstoolsunit.pas * Add ability to test TSdfDataset 2008-06-24 21:50:16 +00:00
sqldbtoolsunit.pas * Use double for mysql ftfloat related tests. 2012-03-01 11:34:47 +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 * Implemented AS for table aliases 2011-11-12 13:05:15 +00:00
tcsqlscanner.pas * Added tests for Grant/Revoke, fixed some bugs on the way 2010-09-03 17:01:01 +00:00
test.json * Example for JSON dataset 2011-12-16 16:31:13 +00:00
testbasics.pas * Revert accidentally committed files in r20238 2012-02-03 21:21:38 +00:00
testbufdatasetstreams.pas * fixes Mantis #14730 dealing with oldvalue=null 2011-09-28 16:27:32 +00:00
testdatasources.pas * Added test for CalcLookupValue 2008-03-21 18:19:02 +00:00
testdbbasics.pas * Moved those tests in TTestDBBasics that needs a cursor to the new 2011-12-29 21:08:52 +00:00
testdddiff.pp * test for Data dictionary diff mechanism 2008-08-11 10:18:48 +00:00
testfieldtypes.pas * Use double for mysql ftfloat related tests. 2012-03-01 11:34:47 +00:00
testjsondataset.pp * Removed resource added by lazarus 2011-12-17 12:31:42 +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 * SqlScript committed 2008-07-11 14:16:39 +00:00
toolsunit.pas * Adds methods to TBinaryField (getasvariant/setasvarvalue) Mantis #20532 2011-11-19 12:42:32 +00:00
XMLXSDExportTest.lpi * Tester for XSD export 2011-07-27 18:35:16 +00:00
XMLXSDExportTest.lpr * Tester for XSD export 2011-07-27 18:35:16 +00:00
xmlxsdexporttestcase1.pas * Better test case from Reinier, Bug ID #19987 2011-08-15 10:29:06 +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, create a new *toolsunit.pas file, then add it to 
the uses section in 'dbtestframework.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)