mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-16 01:39:27 +02:00
* Namespaced version of testinsight units
This commit is contained in:
parent
952f6ebf23
commit
f206de7030
3
packages/testinsight/namespaced/TestInsight.Client.pp
Normal file
3
packages/testinsight/namespaced/TestInsight.Client.pp
Normal file
@ -0,0 +1,3 @@
|
||||
{$DEFINE FPC_DOTTEDUNITS}
|
||||
unit TestInsight.Client;
|
||||
{$i testinsightclient.pp}
|
3
packages/testinsight/namespaced/TestInsight.FpcUnit.pp
Normal file
3
packages/testinsight/namespaced/TestInsight.FpcUnit.pp
Normal file
@ -0,0 +1,3 @@
|
||||
{$DEFINE FPC_DOTTEDUNITS}
|
||||
unit TestInsight.FpcUnit;
|
||||
{$i fpcunittestinsight.pp}
|
3
packages/testinsight/namespaced/TestInsight.Protocol.pp
Normal file
3
packages/testinsight/namespaced/TestInsight.Protocol.pp
Normal file
@ -0,0 +1,3 @@
|
||||
{$DEFINE FPC_DOTTEDUNITS}
|
||||
unit TestInsight.Protocol;
|
||||
{$i testinsightprotocol.pp}
|
5
packages/testinsight/namespaces.lst
Normal file
5
packages/testinsight/namespaces.lst
Normal file
@ -0,0 +1,5 @@
|
||||
{s*:src/}=namespaced/
|
||||
{i+:src/}
|
||||
src/fpcunittestinsight.pp=namespaced/TestInsight.FpcUnit.pp
|
||||
src/testinsightclient.pp=namespaced/TestInsight.Client.pp
|
||||
src/testinsightprotocol.pp=namespaced/TestInsight.Protocol.pp
|
@ -12,14 +12,20 @@
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
|
||||
**********************************************************************}
|
||||
{$IFNDEF FPC_DOTTEDUNITS}
|
||||
unit fpcunittestinsight;
|
||||
{$ENDIF}
|
||||
|
||||
{$mode ObjFPC}{$H+}
|
||||
|
||||
interface
|
||||
|
||||
uses
|
||||
{$IFDEF FPC_DOTTEDUNITS}
|
||||
System.Classes, System.SysUtils, System.Types, FpJson.Data, FpcUnit.Test, FpcUnit.Registry, TestInsight.Protocol, TestInsight.Client;
|
||||
{$ELSE}
|
||||
Classes, SysUtils, types, fpjson, fpcunit, testregistry, testinsightprotocol, testinsightclient;
|
||||
{$ENDIF}
|
||||
|
||||
type
|
||||
|
||||
@ -60,7 +66,11 @@ Procedure TestSuiteToJSON(aSuite : TTest; aJSON : TJSONObject);
|
||||
implementation
|
||||
|
||||
uses
|
||||
{$IFDEF FPC_DOTTEDUNITS}
|
||||
System.DateUtils;
|
||||
{$ELSE}
|
||||
DateUtils;
|
||||
{$ENDIF}
|
||||
|
||||
Function DefaultTestConfigFileName : String;
|
||||
begin
|
||||
|
@ -12,14 +12,20 @@
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
|
||||
**********************************************************************}
|
||||
{$IFNDEF FPC_DOTTEDUNITS}
|
||||
unit testinsightclient;
|
||||
{$ENDIF}
|
||||
|
||||
{$mode ObjFPC}{$H+}
|
||||
|
||||
interface
|
||||
|
||||
uses
|
||||
{$IFDEF FPC_DOTTEDUNITS}
|
||||
System.Classes, System.SysUtils, System.Types, TestInsight.Protocol, FpWeb.Http.Client, FpJson.Data, System.Contnrs, System.IniFiles;
|
||||
{$ELSE}
|
||||
Classes, SysUtils, types, testinsightprotocol, fphttpclient, fpjson, contnrs, inifiles;
|
||||
{$ENDIF}
|
||||
|
||||
Type
|
||||
|
||||
|
@ -12,14 +12,20 @@
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
|
||||
**********************************************************************}
|
||||
{$IFNDEF FPC_DOTTEDUNITS}
|
||||
unit testinsightprotocol;
|
||||
{$ENDIF}
|
||||
|
||||
{$mode ObjFPC}{$H+}
|
||||
|
||||
interface
|
||||
|
||||
uses
|
||||
{$IFDEF FPC_DOTTEDUNITS}
|
||||
System.Classes, System.SysUtils, FpJson.Data;
|
||||
{$ELSE}
|
||||
Classes, SysUtils, fpJSON;
|
||||
{$ENDIF}
|
||||
|
||||
Type
|
||||
ETestInsight = class(Exception);
|
||||
|
Loading…
Reference in New Issue
Block a user