fpc/fcl/dbtests/dbtestframework.pas
joost e23fd988d3 + restructured
+ added TTestFieldTypes.TestString and TestDate

git-svn-id: trunk@3571 -
2006-05-18 21:29:15 +00:00

38 lines
682 B
ObjectPascal

program dbtestframework;
{$IFDEF FPC}
{$mode objfpc}{$H+}
{$ENDIF}
{$include settings.inc}
{$APPTYPE CONSOLE}
uses
SysUtils,
fpcunit,testregistry,
{$ifdef SQLDB_AVAILABLE}
testsqlfieldtypes,
{$ENDIF}
{$IFDEF DBF_AVAILABLE}
testdbbasics,
{$ENDIF}
testreport;
var
FXMLResultsWriter: TXMLResultsWriter;
testResult: TTestResult;
begin
testResult := TTestResult.Create;
FXMLResultsWriter := TXMLResultsWriter.Create;
try
testResult.AddListener(FXMLResultsWriter);
FXMLResultsWriter.WriteHeader;
GetTestRegistry.Run(testResult);
FXMLResultsWriter.WriteResult(testResult);
finally
testResult.Free;
FXMLResultsWriter.Free;
end;
end.