File tree 4 files changed +44
-13
lines changed
4 files changed +44
-13
lines changed Original file line number Diff line number Diff line change @@ -13,9 +13,15 @@ Lazarus/HproseLnet.pas
13
13
* .ico
14
14
* .identcache
15
15
* .rsj
16
-
17
16
* .~pas
18
-
19
- Test /HproseTest.exe
20
-
21
- Test /dunit.ini
17
+ * .~dpr
18
+ * .cfg
19
+ * .exe
20
+ * .deployproj
21
+ * .dof
22
+ * .stat
23
+ dunit.ini
24
+ __recovery
25
+ Debug
26
+ Release
27
+ * .xml
Original file line number Diff line number Diff line change 1
- unit ArrayListTestCases ;
1
+ unit ArrayListTestCase ;
2
2
3
3
interface
4
4
Original file line number Diff line number Diff line change @@ -4,8 +4,8 @@ program HproseTest;
4
4
Delphi DUnit Test Project
5
5
-------------------------
6
6
This project contains the DUnit test framework and the GUI/Console test runners.
7
- Add "CONSOLE_TESTRUNNER" to the conditional defines entry in the project options
8
- to use the console test runner. Otherwise the GUI test runner will be used by
7
+ Add "CONSOLE_TESTRUNNER" to the conditional defines entry in the project options
8
+ to use the console test runner. Otherwise the GUI test runner will be used by
9
9
default.
10
10
11
11
}
@@ -15,11 +15,19 @@ program HproseTest;
15
15
{ $ENDIF}
16
16
17
17
uses
18
+ SysUtils,
19
+ TextTestRunner,
20
+ { $IFDEF FASTMM}
21
+ FastMM4,
22
+ { $ENDIF}
23
+ { $IFDEF MSWINDOWS}
24
+ { $IFNDEF NEXTGEN}
18
25
Forms,
26
+ GuiTestRunner,
27
+ { $ENDIF NEXTGEN}
28
+ { $ENDIF}
19
29
TestFramework,
20
- GUITestRunner,
21
- TextTestRunner,
22
- ArrayListTestCases in ' ArrayListTestCases.pas' ,
30
+ ArrayListTestCase in ' ArrayListTestCase.pas' ,
23
31
HproseClient in ' ..\Source\HproseClient.pas' ,
24
32
HproseCommon in ' ..\Source\HproseCommon.pas' ,
25
33
HproseIO in ' ..\Source\HproseIO.pas' ,
28
36
{ $R *.RES}
29
37
30
38
begin
39
+ { $IFDEF MSWINDOWS}
40
+ { $IFNDEF NEXTGEN}
31
41
Application.Initialize;
42
+ { $ENDIF NEXTGEN}
43
+ { $ENDIF}
32
44
if IsConsole then
33
- TextTestRunner.RunRegisteredTests
45
+ begin
46
+ { $IFNDEF NEXTGEN}
47
+ with TextTestRunner.RunRegisteredTests do
48
+ Free;
49
+ { $ELSE NEXTGEN}
50
+ TextTestRunner.RunRegisteredTests
51
+ { $ENDIF NEXTGEN}
52
+ end
34
53
else
35
- GUITestRunner.RunRegisteredTests;
54
+ begin
55
+ { $IFDEF MSWINDOWS}
56
+ { $IFNDEF NEXTGEN}
57
+ GuiTestRunner.RunRegisteredTests;
58
+ { $ENDIF NEXTGEN}
59
+ { $ENDIF}
60
+ end ;
36
61
end .
37
62
You can’t perform that action at this time.
0 commit comments