testxml.pp 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. { %OPT=-S2 -Fcutf8 }
  2. {
  3. This file is part of the Free Component Library
  4. XML tester program
  5. Copyright (c) 2022 by Michael Van Canneyt [email protected]
  6. See the file COPYING.FPC, included in this distribution,
  7. for details about the copyright.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  11. **********************************************************************}
  12. {$mode objfpc}
  13. {$h+}
  14. program testxml;
  15. uses
  16. {$ifdef unix}
  17. cwstring,
  18. {$endif}
  19. Classes, readertest, consoletestrunner;
  20. type
  21. { TLazTestRunner }
  22. TMyTestRunner = class(TTestRunner)
  23. protected
  24. // override the protected methods of TTestRunner to customize its behavior
  25. end;
  26. var
  27. Application: TMyTestRunner;
  28. begin
  29. DefaultFormat := fPlain;
  30. DefaultRunAllTests := True;
  31. Application := TMyTestRunner.Create(nil);
  32. Application.Initialize;
  33. Application.Run;
  34. Application.Free;
  35. end.