mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-11 16:06:09 +02:00
|
||
---|---|---|
.. | ||
bufdatasettoolsunit.pas | ||
database.ini.txt | ||
dbfexporttest.lpi | ||
dbfexporttest.lpr | ||
dbfexporttestcase1.pas | ||
dbftoolsunit.pas | ||
dbtestframework.pas | ||
Makefile | ||
Makefile.fpc | ||
memdstoolsunit.pas | ||
README.txt | ||
sdfdstoolsunit.pas | ||
sqldbtoolsunit.pas | ||
tcgensql.pas | ||
tcparser.pas | ||
tcsqlscanner.pas | ||
test.json | ||
testbasics.pas | ||
testbufdatasetstreams.pas | ||
testdatasources.pas | ||
testdbbasics.pas | ||
testdddiff.pp | ||
testfieldtypes.pas | ||
testjsondataset.pp | ||
testsqlfiles.lpi | ||
testsqlfiles.lpr | ||
testsqlscanner.lpi | ||
testsqlscanner.lpr | ||
testsqlscript.pas | ||
toolsunit.pas | ||
XMLXSDExportTest.lpi | ||
XMLXSDExportTest.lpr | ||
xmlxsdexporttestcase1.pas |
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)