lazarus/components/fpcunit/testinsight/testing/clienttest.lpr
2023-11-19 16:05:42 +01:00

33 lines
632 B
ObjectPascal

program clienttest;
{$mode objfpc}{$H+}
uses
Classes, jsonparser, consoletestrunner, tcTests, fpcunittestinsight, testinsightclient,
testinsightprotocol;
type
{ TMyTestRunner }
TMyTestRunner = class(TTestRunner)
protected
// override the protected methods of TTestRunner to customize its behavior
end;
var
Application: TMyTestRunner;
begin
if IsTestinsightListening() then
RunRegisteredTests('','')
else
begin
Application := TMyTestRunner.Create(nil);
Application.Initialize;
Application.Title := 'FPCUnit Console test runner';
Application.Run;
Application.Free;
end;
end.