README.txt 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. This is a new rewrite of the fpcunit test reports to make
  2. fpcunit independent of the xml dom library but still provide
  3. a good sistem of reports.
  4. The reports are meant to be used to write the results of the tests
  5. with the new fpc packaging system.
  6. It produces latex and plain reports. Timing of the
  7. executed tests is provided at the testcase and testsuite level.
  8. Summary of the results of the contained testcases (number of
  9. run tests, number of errors, failures and ignored tests)
  10. is provided for each test suite.
  11. A modified console test runner (consoletestrunner.pp)
  12. is included that uses this new reporting classes.
  13. Of course a separate xmltestreport class is included for those
  14. that would like to use the xml test report through xslt to produce
  15. more complex html reports.
  16. The console test runner has to be used as always,
  17. for example:
  18. program runtests;
  19. {$mode objfpc}{$H+}
  20. uses
  21. Classes, consoletestrunner,
  22. add here the units containing your testcases;
  23. var
  24. App: TTestRunner;
  25. begin
  26. App := TTestRunner.Create(nil);
  27. App.Initialize;
  28. App.Title := 'FPCUnit Console runner.';
  29. App.Run;
  30. App.Free;
  31. end.