|
@@ -43,7 +43,7 @@ uses
|
|
|
|
|
|
|
|
|
|
type
|
|
type
|
|
- { XML Test Listner }
|
|
|
|
|
|
+ { XML Test Listener }
|
|
|
|
|
|
{ TXMLResultsWriter }
|
|
{ TXMLResultsWriter }
|
|
|
|
|
|
@@ -58,6 +58,7 @@ type
|
|
FErrors: TDOMNode;
|
|
FErrors: TDOMNode;
|
|
FLastTestSuite: TDOMNode;
|
|
FLastTestSuite: TDOMNode;
|
|
FStartCrono: TDateTime;
|
|
FStartCrono: TDateTime;
|
|
|
|
+ FskipTiming : Boolean;
|
|
{ Converts the actual test results into XML nodes. This gets called
|
|
{ Converts the actual test results into XML nodes. This gets called
|
|
by the public method WriteResult. }
|
|
by the public method WriteResult. }
|
|
procedure TestResultAsXML(pTestResult: TTestResult);
|
|
procedure TestResultAsXML(pTestResult: TTestResult);
|
|
@@ -78,6 +79,7 @@ type
|
|
|
|
|
|
{ A public property to the internal XML document }
|
|
{ A public property to the internal XML document }
|
|
property Document: TXMLDocument read FDoc;
|
|
property Document: TXMLDocument read FDoc;
|
|
|
|
+ Property SkipTiming : Boolean Read FSkipTiming Write FSkipTiming;
|
|
end;
|
|
end;
|
|
|
|
|
|
|
|
|
|
@@ -107,6 +109,7 @@ begin
|
|
n.AppendChild(FDoc.CreateTextNode(IntToStr(pTestResult.NumberOfIgnoredTests)));
|
|
n.AppendChild(FDoc.CreateTextNode(IntToStr(pTestResult.NumberOfIgnoredTests)));
|
|
lResults.AppendChild(n);
|
|
lResults.AppendChild(n);
|
|
|
|
|
|
|
|
+ { We don't have access to TCustomResultsWriter so we cannot honour SkipTiming}
|
|
if not(SkipTiming) then
|
|
if not(SkipTiming) then
|
|
begin
|
|
begin
|
|
n := FDoc.CreateElement('TotalElapsedTime');
|
|
n := FDoc.CreateElement('TotalElapsedTime');
|