fpc/packages/testinsight/example/clienttest.lpr
Michaël Van Canneyt 722711d675 * Fix project
2023-12-25 16:49:20 +01:00

32 lines
590 B
ObjectPascal

program clienttest;
{$mode objfpc}{$H+}
uses
Classes, jsonparser, consoletestrunner, tcTests, fpcunittestinsight;
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.