diff options
Diffstat (limited to 'main')
-rw-r--r-- | main/src/addins/MonoDevelop.UnitTesting.NUnit/NUnit3Runner/NUnitTestRunner.cs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/main/src/addins/MonoDevelop.UnitTesting.NUnit/NUnit3Runner/NUnitTestRunner.cs b/main/src/addins/MonoDevelop.UnitTesting.NUnit/NUnit3Runner/NUnitTestRunner.cs index 93002f6305..903745c6b0 100644 --- a/main/src/addins/MonoDevelop.UnitTesting.NUnit/NUnit3Runner/NUnitTestRunner.cs +++ b/main/src/addins/MonoDevelop.UnitTesting.NUnit/NUnit3Runner/NUnitTestRunner.cs @@ -149,6 +149,15 @@ namespace NUnit3Runner bool CheckXmlForError(XmlElement root, out string result) { + if (root.GetAttribute ("type") != "Assembly" || root.GetAttribute ("runstate") != "NotRunnable") { + // Only interested in _SKIPREASON if the test-suite is an assembly and the + // state is NotRunnable. This will indicate a load failure. This check + // prevents Ignore attributes incorrectly indicating an error since these + // also have a _SKIPREASON. + result = null; + return false; + } + var elements = root.GetElementsByTagName ("properties"); var skipReasonString = string.Empty; foreach (XmlElement element in elements) |