Menu

[r3629]: / branches / parsnip / Src / Tests / DUnit / CodeSnipTests.dpr  Maximize  Restore  History

Download this file

55 lines (47 with data), 1.4 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
{
* Delphi DUnit Test Project for CodeSnip
* --------------------------------------
*
* This project provides a DUnit test framework for some of the source code from
* the CodeSnip project.
*
* The project can be compiled either a GUI application (the default) or as a
* console application. To compile as a console application the
* CONSOLE_TESTRUNNER symbol must be defined.
*
* Some tests will not be available unless the TESTING symbol is defined, which
* it is by default when compiling from the Delphi IDE.
*
* $Rev$
* $Date$
}
program CodeSnipTests;
{$IFDEF CONSOLE_TESTRUNNER}
{$APPTYPE CONSOLE}
{$ENDIF}
uses
Forms,
TestFramework,
GUITestRunner,
TextTestRunner,
TestUStrUtils in 'TestUStrUtils.pas',
UStrUtils in '..\..\UStrUtils.pas',
UConsts in '..\..\UConsts.pas',
TestUUtils in 'TestUUtils.pas',
UUtils in '..\..\UUtils.pas',
UBaseObjects in '..\..\UBaseObjects.pas',
TestUBaseObjects in 'TestUBaseObjects.pas',
USingleton in '..\..\USingleton.pas',
TestUSingleton in 'TestUSingleton.pas',
TestUURIEncode in 'TestUURIEncode.pas',
UURIEncode in '..\..\UURIEncode.pas';
{$R *.RES}
begin
ReportMemoryLeaksOnShutdown := DebugHook <> 0;
Application.Initialize;
if IsConsole then
with TextTestRunner.RunRegisteredTests do
Free
else
GUITestRunner.RunRegisteredTests;
end.
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.