Browse Source

NUnit-Console no longer creates TestResult.xml if the /xml option is not used.

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@4072 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
shortcuts
Matt Ward 17 years ago
parent
commit
a2ef6c70e9
  1. BIN
      src/Tools/NUnit/nunit-console-x86.exe
  2. BIN
      src/Tools/NUnit/nunit-console.exe
  3. 8
      src/Tools/NUnit/nunit-console/ExtendedConsoleUi.cs

BIN
src/Tools/NUnit/nunit-console-x86.exe

Binary file not shown.

BIN
src/Tools/NUnit/nunit-console.exe

Binary file not shown.

8
src/Tools/NUnit/nunit-console/ExtendedConsoleUi.cs

@ -171,11 +171,13 @@ namespace NUnit.ConsoleRunner @@ -171,11 +171,13 @@ namespace NUnit.ConsoleRunner
string xmlResultFile = options.xml == null || options.xml == string.Empty
? "TestResult.xml" : options.xml;
using (StreamWriter writer = new StreamWriter(xmlResultFile))
if (!String.IsNullOrEmpty(options.xml))
{
writer.Write(xmlOutput);
using (StreamWriter writer = new StreamWriter(xmlResultFile))
{
writer.Write(xmlOutput);
}
}
returnCode = summary.ErrorsAndFailures;
}

Loading…
Cancel
Save