Permalink
Browse files

Changed Namespace to TestFixture.

  • Loading branch information...
1 parent 5f98aaf commit a0c087c9c9c4642c3bee66cd327d663902ba9378 @andywhitfield committed Apr 15, 2011
@@ -21,7 +21,7 @@ public void Simple_example_should_format_with_one_nunit_test_result()
Console.WriteLine(writer.ToString());
Assert.AreEqual(@"<?xml version=""1.0"" encoding=""utf-16""?>
<test-results name=""bin\Debug\SomeApplication.Tests.xap"" total=""1"" not-run=""0"" failures=""0"" date=""2011-04-09"" time=""21:06:03"">
- <test-suite type=""Namespace"" executed=""True"" result=""Success"" success=""True"">
+ <test-suite type=""TestFixture"" name=""SomeApplication.Tests.xap"" executed=""True"" result=""Success"" success=""True"">
<results>
<test-case name=""SomeApplication.Tests.ATest.My_first_test."" executed=""True"" time=""01:02:03.4567"" result=""Success"" success=""True"" />
</results>
@@ -42,7 +42,7 @@ public void One_ignored_test_should_generate_test_suite_result_as_success()
Console.WriteLine(writer.ToString());
Assert.AreEqual(@"<?xml version=""1.0"" encoding=""utf-16""?>
<test-results name=""test"" total=""2"" not-run=""1"" failures=""0"" date=""2011-04-09"" time=""00:00:00"">
- <test-suite type=""Namespace"" executed=""True"" result=""Success"" success=""True"">
+ <test-suite type=""TestFixture"" name=""test"" executed=""True"" result=""Success"" success=""True"">
<results>
<test-case name=""test1"" executed=""True"" time=""00:00:00.0000"" result=""Success"" success=""True"" />
<test-case name=""test2"" executed=""False"" time=""00:00:00.0000"" result=""Ignored"" />
@@ -65,7 +65,7 @@ public void One_failed_test_should_generate_test_suite_result_as_failure()
Console.WriteLine(writer.ToString());
Assert.AreEqual(@"<?xml version=""1.0"" encoding=""utf-16""?>
<test-results name=""test"" total=""3"" not-run=""1"" failures=""1"" date=""2011-04-09"" time=""00:00:00"">
- <test-suite type=""Namespace"" executed=""True"" result=""Failure"" success=""False"">
+ <test-suite type=""TestFixture"" name=""test"" executed=""True"" result=""Failure"" success=""False"">
<results>
<test-case name=""test1"" executed=""True"" time=""00:00:00.0000"" result=""Success"" success=""True"" />
<test-case name=""test2"" executed=""False"" time=""00:00:00.0000"" result=""Ignored"" />
@@ -25,7 +25,8 @@ public void Format(StatLightResult result)
new XAttribute("date", result.DateRun.ToString("yyyy-MM-dd")),
new XAttribute("time", result.DateRun.ToString("HH:mm:ss")),
new XElement("test-suite",
- new XAttribute("type", "Namespace"),
+ new XAttribute("type", "TestFixture"),
+ new XAttribute("name", Path.GetFileName(result.Name)),
new XAttribute("executed", "True"),
new XAttribute("result", result.TotalFailed > 0 ? "Failure" : "Success"),
new XAttribute("success", result.TotalFailed > 0 ? "False" : "True"),

0 comments on commit a0c087c

Please sign in to comment.