tregtestframework.pp 530 B

1234567891011121314151617181920212223242526272829303132333435
  1. { %TARGET=win32,win64,wince,linux,solaris,openbsd }
  2. program tregtestframework;
  3. {$IFDEF FPC}
  4. {$mode objfpc}{$H+}
  5. {$ENDIF}
  6. {$IFDEF WINDOWS}
  7. {$APPTYPE CONSOLE}
  8. {$ENDIF}
  9. uses
  10. {$ifdef unix}
  11. cwstring,
  12. {$endif}
  13. SysUtils,
  14. fpcunit, testreport, testregistry, consoletestrunner,
  15. // Units wich contains the tests
  16. regtcxmlreg,
  17. regtestbasics;
  18. Var
  19. A : TTestRunner;
  20. begin
  21. DefaultFormat:=fPlain;
  22. DefaultRunAllTests:=True;
  23. A:=TTestRunner.Create(Nil);
  24. try
  25. A.Initialize;
  26. A.Run;
  27. finally
  28. A.Free;
  29. end;
  30. end.