mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-14 11:19:24 +02:00
fpcunit consolerunner: no . if test failed, because a E or F will be output for that test
git-svn-id: trunk@10092 -
This commit is contained in:
parent
4d71ca81f2
commit
03bdadb1f0
@ -62,6 +62,8 @@ const
|
||||
{ TProgressWriter }
|
||||
type
|
||||
TProgressWriter= class(TNoRefCountObject, ITestListener)
|
||||
private
|
||||
FSuccess: boolean;
|
||||
public
|
||||
destructor Destroy; override;
|
||||
|
||||
@ -81,21 +83,24 @@ end;
|
||||
|
||||
procedure TProgressWriter.AddFailure(ATest: TTest; AFailure: TTestFailure);
|
||||
begin
|
||||
FSuccess := false;
|
||||
write('F');
|
||||
end;
|
||||
|
||||
procedure TProgressWriter.AddError(ATest: TTest; AError: TTestFailure);
|
||||
begin
|
||||
FSuccess := false;
|
||||
write('E');
|
||||
end;
|
||||
|
||||
procedure TProgressWriter.StartTest(ATest: TTest);
|
||||
begin
|
||||
// nothing to do
|
||||
FSuccess := true; // assume success, until proven otherwise
|
||||
end;
|
||||
|
||||
procedure TProgressWriter.EndTest(ATest: TTest);
|
||||
begin
|
||||
if FSuccess then
|
||||
write('.');
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user