mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-07-24 20:16:09 +02:00
fpc unit gui testrunner: update progressbar before starting all tests, so that progres is cleared/shown before the first test has been finished.
git-svn-id: trunk@27871 -
This commit is contained in:
parent
cdabc1ddbf
commit
fa11cf2dab
@ -405,7 +405,7 @@ begin
|
|||||||
Canvas.Font.Color := clWhite;
|
Canvas.Font.Color := clWhite;
|
||||||
if Assigned(TestSuite) then
|
if Assigned(TestSuite) then
|
||||||
begin
|
begin
|
||||||
if TestsCounter <> 0 then
|
if alltests - skipsCounter <> 0 then
|
||||||
begin
|
begin
|
||||||
alltests := TestSuite.CountTestCases;
|
alltests := TestSuite.CountTestCases;
|
||||||
if FailureCounter + ErrorCounter = 0 then
|
if FailureCounter + ErrorCounter = 0 then
|
||||||
@ -416,7 +416,6 @@ begin
|
|||||||
skipsCounter)]);
|
skipsCounter)]);
|
||||||
msg := Format(rsErrors, [msg, IntToStr(ErrorCounter)]);
|
msg := Format(rsErrors, [msg, IntToStr(ErrorCounter)]);
|
||||||
msg := Format(rsFailures, [msg, IntToStr(FailureCounter)]);
|
msg := Format(rsFailures, [msg, IntToStr(FailureCounter)]);
|
||||||
//Canvas.Brush.Color := clNone;
|
|
||||||
OldStyle := Canvas.Brush.Style;
|
OldStyle := Canvas.Brush.Style;
|
||||||
Canvas.Brush.Style := bsClear;
|
Canvas.Brush.Style := bsClear;
|
||||||
Canvas.Textout(10, 10, msg);
|
Canvas.Textout(10, 10, msg);
|
||||||
@ -697,6 +696,7 @@ begin
|
|||||||
SkipUncheckedTests(testResult, TestTree.Selected);
|
SkipUncheckedTests(testResult, TestTree.Selected);
|
||||||
skipsCounter := testResult.NumberOfSkippedTests;
|
skipsCounter := testResult.NumberOfSkippedTests;
|
||||||
testResult.AddListener(self);
|
testResult.AddListener(self);
|
||||||
|
pbBar.Invalidate;
|
||||||
w := TXMLResultsWriter.Create(nil);
|
w := TXMLResultsWriter.Create(nil);
|
||||||
w.FileName := 'null'; // prevents output to the console
|
w.FileName := 'null'; // prevents output to the console
|
||||||
testResult.AddListener(w);
|
testResult.AddListener(w);
|
||||||
|
Loading…
Reference in New Issue
Block a user