2015-12-22 12:29:25 +01:00
|
|
|
program DMVCFrameworkTests;
|
|
|
|
{
|
|
|
|
|
|
|
|
Delphi DUnit Test Project
|
|
|
|
-------------------------
|
|
|
|
This project contains the DUnit test framework and the GUI/Console test runners.
|
|
|
|
Add "CONSOLE_TESTRUNNER" to the conditional defines entry in the project options
|
|
|
|
to use the console test runner. Otherwise the GUI test runner will be used by
|
|
|
|
default.
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
{$IFDEF CONSOLE_TESTRUNNER}
|
|
|
|
{$APPTYPE CONSOLE}
|
|
|
|
{$ENDIF}
|
|
|
|
|
2016-08-24 16:08:18 +02:00
|
|
|
|
2015-12-22 12:29:25 +01:00
|
|
|
uses
|
|
|
|
DUnitTestRunner,
|
|
|
|
FrameworkTestsU in 'FrameworkTestsU.pas',
|
|
|
|
LiveServerTestU in 'LiveServerTestU.pas',
|
|
|
|
MessagingExtensionsTestU in 'MessagingExtensionsTestU.pas',
|
|
|
|
BOs in 'BOs.pas',
|
|
|
|
TestServerControllerU in '..\TestServer\TestServerControllerU.pas',
|
2016-05-19 11:22:55 +02:00
|
|
|
RESTAdapterTestsU in 'RESTAdapterTestsU.pas',
|
2017-05-25 16:57:49 +02:00
|
|
|
MVCFramework.Tests.WebModule2 in '..\StandaloneServer\MVCFramework.Tests.WebModule2.pas' {TestWebModule2: TWebModule},
|
2016-11-13 20:59:21 +01:00
|
|
|
MVCFramework.Tests.StandaloneServer in '..\StandaloneServer\MVCFramework.Tests.StandaloneServer.pas',
|
2017-05-25 16:57:49 +02:00
|
|
|
MVCFramework.Tests.WebModule1 in '..\RESTClient\MVCFramework.Tests.WebModule1.pas' {TestWebModule1: TWebModule},
|
2016-11-13 20:59:21 +01:00
|
|
|
MVCFramework.Tests.RESTClient in '..\RESTClient\MVCFramework.Tests.RESTClient.pas',
|
2017-02-07 14:08:36 +01:00
|
|
|
MVCFramework.Tests.AppController in '..\RESTClient\MVCFramework.Tests.AppController.pas',
|
2017-04-26 14:39:18 +02:00
|
|
|
BusinessObjectsU in '..\..\..\samples\commons\BusinessObjectsU.pas',
|
2017-05-25 16:57:49 +02:00
|
|
|
MVCFramework.SystemJSONUtils in '..\..\..\sources\MVCFramework.SystemJSONUtils.pas',
|
|
|
|
MVCFramework.Serializer.Commons in '..\..\..\sources\MVCFramework.Serializer.Commons.pas';
|
2015-12-22 12:29:25 +01:00
|
|
|
|
|
|
|
{$R *.RES}
|
|
|
|
|
2016-08-24 16:08:18 +02:00
|
|
|
|
2015-12-22 12:29:25 +01:00
|
|
|
begin
|
|
|
|
ReportMemoryLeaksOnShutdown := True;
|
|
|
|
|
|
|
|
DUnitTestRunner.RunRegisteredTests;
|
|
|
|
|
2017-04-29 23:56:56 +02:00
|
|
|
{$IFDEF CONSOLE_TESTRUNNER}
|
|
|
|
|
2016-08-24 16:08:18 +02:00
|
|
|
write('Press return to continue...');
|
|
|
|
ReadLn;
|
2017-04-29 23:56:56 +02:00
|
|
|
|
|
|
|
{$ENDIF}
|
2016-08-24 16:08:18 +02:00
|
|
|
|
2015-12-22 12:29:25 +01:00
|
|
|
end.
|