testjson.pp 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. {
  2. This file is part of the Free Component Library
  3. JSON fpcunit tester program
  4. Copyright (c) 2007 by Michael Van Canneyt [email protected]
  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. {$mode objfpc}
  12. {$h+}
  13. program testjson;
  14. uses
  15. Classes, testjsondata, testjsonparser, consoletestrunner; //, testjsonrtti, fpjsonrtti;
  16. type
  17. { TLazTestRunner }
  18. TMyTestRunner = class(TTestRunner)
  19. protected
  20. // override the protected methods of TTestRunner to customize its behavior
  21. end;
  22. var
  23. Application: TMyTestRunner;
  24. begin
  25. DefaultFormat := fPlain;
  26. DefaultRunAllTests := True;
  27. Application := TMyTestRunner.Create(nil);
  28. Application.Initialize;
  29. Application.Run;
  30. Application.Free;
  31. end.