fpc/packages/fcl-fpcunit/src
2024-02-17 15:40:42 +01:00
..
demo/consolerunner
example_output
example_xsl
exampletests human68k: regenerated Makefiles 2023-11-30 23:43:27 +00:00
tests human68k: regenerated Makefiles 2023-11-30 23:43:27 +00:00
consoletestrunner.pas * Implement status support (Delphi DUnit compatibility) 2024-02-17 15:40:42 +01:00
digesttestreport.pp * Dotted filenames for package fcl-fpcunit 2023-07-27 19:04:21 +02:00
DUnitCompatibleInterface.inc * Fix compilation after rebase 2023-07-15 18:22:41 +02:00
fpcunit.pp * Implement status support (Delphi DUnit compatibility) 2024-02-17 15:40:42 +01:00
fpcunitreport.pp * Dotted filenames for package fcl-fpcunit 2023-07-27 19:04:21 +02:00
fpmake.inc
fpmake.pp
junittestreport.pp * Dotted filenames for package fcl-fpcunit 2023-07-27 19:04:21 +02:00
latextestreport.pp * Dotted filenames for package fcl-fpcunit 2023-07-27 19:04:21 +02:00
plaintestreport.pp * Dotted filenames for package fcl-fpcunit 2023-07-27 19:04:21 +02:00
README.txt
simpletestrunner.pas * Dotted filenames for package fcl-fpcunit 2023-07-27 19:04:21 +02:00
testdecorator.pp * Dotted filenames for package fcl-fpcunit 2023-07-27 19:04:21 +02:00
testregistry.pp * Dotted filenames for package fcl-fpcunit 2023-07-27 19:04:21 +02:00
testreport.pp * Dotted filenames for package fcl-fpcunit 2023-07-27 19:04:21 +02:00
testutils.pp * access the legacy method table using the correct alignment 2024-01-12 23:49:47 +01:00
ubmockobject.pp * Dotted filenames for package fcl-fpcunit 2023-07-27 19:04:21 +02:00
xmlreporter.pas * Dotted filenames for package fcl-fpcunit 2023-07-27 19:04:21 +02:00
xmltestreport.pp * Dotted filenames for package fcl-fpcunit 2023-07-27 19:04:21 +02:00

This is a new rewrite of the fpcunit test reports to make 
fpcunit independent of the xml dom library but still provide
a good sistem of reports.
The reports are meant to be used to write the results of the tests
with the new fpc packaging system.
It produces latex and plain reports. Timing of the 
executed tests is provided at the testcase and testsuite level.
Summary of the results of the contained testcases (number of
run tests, number of errors, failures and ignored tests)
is provided for each test suite.
A modified console test runner (consoletestrunner.pp) 
is included that uses this new reporting classes.
Of course a separate xmltestreport class is included for those
that would like to use the xml test report through xslt to produce
more complex html reports.


The console test runner has to be used as always,
for example:

program runtests;

{$mode objfpc}{$H+}

uses
  Classes, consoletestrunner, 
  add here the units containing your testcases;
  
var
  App: TTestRunner;

begin
  App := TTestRunner.Create(nil);
  App.Initialize;
  App.Title := 'FPCUnit Console runner.';
  App.Run;
  App.Free;
end.