fpc/packages/fcl-db/tests
joost 6c06a902e2 * CanModify should be false for fkLookup and fkCalculated fields. Part of bug #13114
* Added test for lookup-fields which currently fails for sqldb because TSQLQuert.Lookup isnt implemented

git-svn-id: trunk@12738 -
2009-02-13 22:17:25 +00:00
..
database.ini.txt * Added sqlite3-test configuration example 2008-12-04 21:20:25 +00:00
dbftoolsunit.pas * Test for CalculateFields 2008-03-21 14:28:34 +00:00
dbtestframework.pas * Added tests for update-buffers and streaming 2008-12-28 01:12:38 +00:00
Makefile * regened makefiles to propagate makefile versions 2008-10-22 17:32:15 +00:00
Makefile.fpc * Add ability to test TSdfDataset 2008-06-24 21:50:16 +00:00
memdstoolsunit.pas
README.txt
sdfdstoolsunit.pas * Add ability to test TSdfDataset 2008-06-24 21:50:16 +00:00
sqldbtoolsunit.pas * Use variable instead of hardcoded tablename 2008-11-23 15:04:58 +00:00
testbasics.pas * Fixed AV when TFieldDefs has dataset assigned. (+test) 2009-01-19 10:02:02 +00:00
testbufdatasetstreams.pas * Added tests to test insertions after all records are deleted 2009-01-04 21:48:57 +00:00
testdatasources.pas * Added test for CalcLookupValue 2008-03-21 18:19:02 +00:00
testdbbasics.pas * CanModify should be false for fkLookup and fkCalculated fields. Part of bug #13114 2009-02-13 22:17:25 +00:00
testdddiff.pp * test for Data dictionary diff mechanism 2008-08-11 10:18:48 +00:00
testfieldtypes.pas * When TSQLQuery.SetSchemaInfo is used the sql-statement is not set directly anymore, but during the prepare (more Delphi/dbexpress compatible) 2009-01-17 17:09:49 +00:00
testsqlscript.pas * SqlScript committed 2008-07-11 14:16:39 +00:00
toolsunit.pas * Money-types are stored as int64 by postgres 2009-01-19 21:53:05 +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)