Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/guiunit.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLluis Sanchez <lluis@xamarin.com>2013-10-07 17:21:50 +0400
committerLluis Sanchez <lluis@xamarin.com>2013-10-07 17:21:50 +0400
commitaaf2b9650baad6c5c9f06f5f431958803f386135 (patch)
treebb60fa4e15bdfab9e1a2a28188248aeec46a455a
parent1895e4bbff9cef63b3667ac73da3fdf58f79e46f (diff)
Include the message and stacktrace in the results sent to MD
-rw-r--r--src/framework/GuiUnit/XmlTestListener.cs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/framework/GuiUnit/XmlTestListener.cs b/src/framework/GuiUnit/XmlTestListener.cs
index af8ca2f..a1954e7 100644
--- a/src/framework/GuiUnit/XmlTestListener.cs
+++ b/src/framework/GuiUnit/XmlTestListener.cs
@@ -34,6 +34,10 @@ namespace GuiUnit
new XAttribute ("ignored", result.SkipCount),
new XAttribute ("inconclusive", result.InconclusiveCount)
);
+ if (!string.IsNullOrEmpty (result.Message))
+ element.Add (new XAttribute ("message", result.Message));
+ if (!string.IsNullOrEmpty (result.StackTrace))
+ element.Add (new XAttribute ("stack-trace", result.StackTrace));
Write (element);
}