123456789101112131415161718192021222324252627282930313233 |
- program unittests_console;
- {$mode objfpc}{$H+}
- uses
- {$ifdef unix}
- cwstring,
- {$endif}
- Classes
- ,consoletestrunner
- {$i testunits.inc}
- ;
- type
- { TLazTestRunner }
- TMyTestRunner = class(TTestRunner)
- protected
- // override the protected methods of TTestRunner to customize its behavior
- end;
- var
- Application: TMyTestRunner;
- begin
- DefaultFormat:=fPlain;
- DefaultRunAllTests:=True;
- Application := TMyTestRunner.Create(nil);
- Application.Initialize;
- Application.Run;
- Application.Free;
- end.
|