joost 6a6ab2a392 * Call TDatalink.LayoutChanged when controls are disabled and dataset closed/opened. Bug #16428 + test 15 years ago
..
Makefile e246cac3ac * regenerated using latest fpcmake 16 years ago
Makefile.fpc 38b265f60f * Add ability to test TSdfDataset 17 years ago
README.txt f21b7b6bd9 * Updated readme and database.ini 18 years ago
database.ini.txt 0a7b499443 * Added sqlite3-test configuration example 16 years ago
dbftoolsunit.pas 6b1f84087d tests: fix 2 database tests which assumed that dates are in yyyy-mm-dd format on all locales 15 years ago
dbtestframework.pas f74bd99413 * Make the dbconnector ref-counted 15 years ago
memdstoolsunit.pas 5b8dd4c004 * move fcl sources to separate packages 18 years ago
sdfdstoolsunit.pas 38b265f60f * Add ability to test TSdfDataset 17 years ago
sqldbtoolsunit.pas cc700b54b8 * Implemented TBufDataset.UniDirectional property 15 years ago
testbasics.pas 7613f3eb5f * Fixed AV when TFieldDefs has dataset assigned. (+test) 16 years ago
testbufdatasetstreams.pas c10e229a4b * Moved TDBBasicsTestSetup to toolsunit 15 years ago
testdatasources.pas 1da7000192 * Added test for CalcLookupValue 17 years ago
testdbbasics.pas 6a6ab2a392 * Call TDatalink.LayoutChanged when controls are disabled and dataset closed/opened. Bug #16428 + test 15 years ago
testdddiff.pp c2dc42bb89 * test for Data dictionary diff mechanism 17 years ago
testfieldtypes.pas f74bd99413 * Make the dbconnector ref-counted 15 years ago
testsqlscript.pas cc0c2d6467 * SqlScript committed 17 years ago
toolsunit.pas 6a6ab2a392 * Call TDatalink.LayoutChanged when controls are disabled and dataset closed/opened. Bug #16428 + test 15 years ago

README.txt

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)