clienttest.lpr 590 B

12345678910111213141516171819202122232425262728293031
  1. program clienttest;
  2. {$mode objfpc}{$H+}
  3. uses
  4. Classes, jsonparser, consoletestrunner, tcTests, fpcunittestinsight;
  5. type
  6. { TMyTestRunner }
  7. TMyTestRunner = class(TTestRunner)
  8. protected
  9. // override the protected methods of TTestRunner to customize its behavior
  10. end;
  11. var
  12. Application: TMyTestRunner;
  13. begin
  14. if IsTestinsightListening() then
  15. RunRegisteredTests('','')
  16. else
  17. begin
  18. Application := TMyTestRunner.Create(nil);
  19. Application.Initialize;
  20. Application.Title := 'FPCUnit Console test runner';
  21. Application.Run;
  22. Application.Free;
  23. end;
  24. end.