fpc/fcl/dbtests
2007-01-11 01:29:39 +00:00
..
database.ini + Added a README and some examples do database.ini 2006-12-30 20:30:35 +00:00
dbftoolsunit.pas * restructured the test-suite 2006-12-29 21:33:20 +00:00
dbtestframework.pas + Added a README and some examples do database.ini 2006-12-30 20:30:35 +00:00
Makefile * Makefiles regenerated 2007-01-06 21:08:19 +00:00
Makefile.fpc + initial implementation of DB Unit Tests 2006-05-12 15:13:27 +00:00
memdstoolsunit.pas * restructured the test-suite 2006-12-29 21:33:20 +00:00
README.txt + Added a README and some examples do database.ini 2006-12-30 20:30:35 +00:00
sqldbtoolsunit.pas * restructured the test-suite 2006-12-29 21:33:20 +00:00
testbasics.pas + added more tests and some fixes for the change behaviour of MySQL 2006-06-05 15:37:25 +00:00
testdbbasics.pas * added tests for filtering and null-valued fields 2007-01-11 01:29:39 +00:00
testsqlfieldtypes.pas * fix for bug #7565 + test 2007-01-01 22:55:30 +00:00
toolsunit.pas * restructured the test-suite 2006-12-29 21:33:20 +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' for more information.

I hope this is enough information to get you started,

Joost van der Sluis (30-12-2006)