testpas2js.pp 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. {
  2. This file is part of the Free Component Library (FCL)
  3. Copyright (c) 2014 by Michael Van Canneyt
  4. Unit tests runner for Pascal-to-Javascript converter class.
  5. See the file COPYING.FPC, included in this distribution,
  6. for details about the copyright.
  7. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  10. **********************************************************************}
  11. program testpas2js;
  12. {$mode objfpc}{$H+}
  13. uses
  14. {$IFDEF EnableMemCheck}
  15. MemCheck,
  16. {$ENDIF}
  17. Classes, consoletestrunner, tcconverter, TCModules, TCSrcMap,
  18. TCFiler, TCUnitSearch, TCOptimizations, TCGenerics, TCPrecompile;
  19. type
  20. TMyTestRunner = class(TTestRunner)
  21. protected
  22. end;
  23. var
  24. Application: TMyTestRunner;
  25. begin
  26. DefaultFormat:=fPlain;
  27. DefaultRunAllTests:=True;
  28. Application := TMyTestRunner.Create(nil);
  29. Application.Initialize;
  30. Application.Run;
  31. Application.Free;
  32. end.