diff options
author | Lluis Sanchez <lluis@xamarin.com> | 2013-10-07 17:21:50 +0400 |
---|---|---|
committer | Lluis Sanchez <lluis@xamarin.com> | 2013-10-07 17:21:50 +0400 |
commit | aaf2b9650baad6c5c9f06f5f431958803f386135 (patch) | |
tree | bb60fa4e15bdfab9e1a2a28188248aeec46a455a | |
parent | 1895e4bbff9cef63b3667ac73da3fdf58f79e46f (diff) |
Include the message and stacktrace in the results sent to MD
-rw-r--r-- | src/framework/GuiUnit/XmlTestListener.cs | 4 |
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); } |