Permalink
Browse files

All xunit tests passing now

  • Loading branch information...
1 parent b362e29 commit 2ef0a60fcab956b155ee69cc6a53fe1216451b30 @jbogard jbogard committed Feb 28, 2013
Showing with 6,243 additions and 1,535 deletions.
  1. +3 −3 default.ps1
  2. BIN lib/nunit.framework.dll
  3. +29 −0 lib/xunit.net/EULA.txt
  4. +128 −0 lib/xunit.net/HTML.xslt
  5. +121 −0 lib/xunit.net/NUnitXml.xslt
  6. BIN lib/xunit.net/xunit.console.clr4.exe
  7. +21 −0 lib/xunit.net/xunit.console.clr4.exe.config
  8. BIN lib/xunit.net/xunit.console.clr4.x86.exe
  9. +21 −0 lib/xunit.net/xunit.console.clr4.x86.exe.config
  10. BIN lib/xunit.net/xunit.console.exe
  11. +21 −0 lib/xunit.net/xunit.console.exe.config
  12. BIN lib/xunit.net/xunit.console.x86.exe
  13. +21 −0 lib/xunit.net/xunit.console.x86.exe.config
  14. BIN lib/xunit.net/xunit.dll
  15. +5 −0 lib/xunit.net/xunit.dll.tdnet
  16. BIN lib/xunit.net/xunit.extensions.dll
  17. +797 −0 lib/xunit.net/xunit.extensions.xml
  18. BIN lib/xunit.net/xunit.gui.clr4.exe
  19. BIN lib/xunit.net/xunit.gui.clr4.x86.exe
  20. BIN lib/xunit.net/xunit.gui.exe
  21. BIN lib/xunit.net/xunit.gui.x86.exe
  22. BIN lib/xunit.net/xunit.installer.exe
  23. BIN lib/xunit.net/xunit.runner.msbuild.dll
  24. BIN lib/xunit.net/xunit.runner.tdnet.dll
  25. BIN lib/xunit.net/xunit.runner.utility.dll
  26. +1,212 −0 lib/xunit.net/xunit.runner.utility.xml
  27. +2,439 −0 lib/xunit.net/xunit.xml
  28. +29 −0 lib/xunit.sl/Silverlight-2.0/EULA.txt
  29. BIN lib/xunit.sl/Silverlight-2.0/xunit-silverlight.dll
  30. BIN lib/xunit.sl/Silverlight-2.0/xunit-silverlight.pdb
  31. BIN lib/xunit.sl/Silverlight-2.0/xunit.extensions-silverlight.dll
  32. BIN lib/xunit.sl/Silverlight-2.0/xunit.extensions-silverlight.pdb
  33. BIN lib/xunit.sl/Silverlight-2.0/xunit.runner.silverlight.dll
  34. BIN lib/xunit.sl/Silverlight-2.0/xunit.runner.silverlight.pdb
  35. +29 −0 lib/xunit.sl/Silverlight-3.0/EULA.txt
  36. BIN lib/xunit.sl/Silverlight-3.0/xunit-silverlight.dll
  37. BIN lib/xunit.sl/Silverlight-3.0/xunit-silverlight.pdb
  38. BIN lib/xunit.sl/Silverlight-3.0/xunit.extensions-silverlight.dll
  39. BIN lib/xunit.sl/Silverlight-3.0/xunit.extensions-silverlight.pdb
  40. BIN lib/xunit.sl/Silverlight-3.0/xunit.runner.silverlight.dll
  41. BIN lib/xunit.sl/Silverlight-3.0/xunit.runner.silverlight.pdb
  42. +29 −0 lib/xunit.sl/Silverlight-4.0-wp7/EULA.txt
  43. BIN lib/xunit.sl/Silverlight-4.0-wp7/Microsoft.Phone.Interop.dll
  44. BIN lib/xunit.sl/Silverlight-4.0-wp7/Microsoft.Phone.dll
  45. BIN lib/xunit.sl/Silverlight-4.0-wp7/xunit-silverlight.dll
  46. BIN lib/xunit.sl/Silverlight-4.0-wp7/xunit-silverlight.pdb
  47. BIN lib/xunit.sl/Silverlight-4.0-wp7/xunit.extensions-silverlight.dll
  48. BIN lib/xunit.sl/Silverlight-4.0-wp7/xunit.extensions-silverlight.pdb
  49. BIN lib/xunit.sl/Silverlight-4.0-wp7/xunit.runner.silverlight.dll
  50. BIN lib/xunit.sl/Silverlight-4.0-wp7/xunit.runner.silverlight.pdb
  51. +29 −0 lib/xunit.sl/Silverlight-4.0-wp71/EULA.txt
  52. BIN lib/xunit.sl/Silverlight-4.0-wp71/Microsoft.Phone.Interop.dll
  53. BIN lib/xunit.sl/Silverlight-4.0-wp71/Microsoft.Phone.dll
  54. BIN lib/xunit.sl/Silverlight-4.0-wp71/xunit-silverlight.dll
  55. BIN lib/xunit.sl/Silverlight-4.0-wp71/xunit-silverlight.pdb
  56. BIN lib/xunit.sl/Silverlight-4.0-wp71/xunit.extensions-silverlight.dll
  57. BIN lib/xunit.sl/Silverlight-4.0-wp71/xunit.extensions-silverlight.pdb
  58. BIN lib/xunit.sl/Silverlight-4.0-wp71/xunit.runner.silverlight.dll
  59. BIN lib/xunit.sl/Silverlight-4.0-wp71/xunit.runner.silverlight.pdb
  60. +29 −0 lib/xunit.sl/Silverlight-4.0/EULA.txt
  61. BIN lib/xunit.sl/Silverlight-4.0/xunit-silverlight.dll
  62. BIN lib/xunit.sl/Silverlight-4.0/xunit-silverlight.pdb
  63. BIN lib/xunit.sl/Silverlight-4.0/xunit.extensions-silverlight.dll
  64. BIN lib/xunit.sl/Silverlight-4.0/xunit.extensions-silverlight.pdb
  65. BIN lib/xunit.sl/Silverlight-4.0/xunit.runner.silverlight.dll
  66. BIN lib/xunit.sl/Silverlight-4.0/xunit.runner.silverlight.pdb
  67. +29 −0 lib/xunit.sl/Silverlight-5.0/EULA.txt
  68. BIN lib/xunit.sl/Silverlight-5.0/xunit-silverlight.dll
  69. BIN lib/xunit.sl/Silverlight-5.0/xunit-silverlight.pdb
  70. BIN lib/xunit.sl/Silverlight-5.0/xunit.extensions-silverlight.dll
  71. BIN lib/xunit.sl/Silverlight-5.0/xunit.extensions-silverlight.pdb
  72. BIN lib/xunit.sl/Silverlight-5.0/xunit.runner.silverlight.dll
  73. BIN lib/xunit.sl/Silverlight-5.0/xunit.runner.silverlight.pdb
  74. +2 −1 src/AutoMapper/AutoMapper.SL4.csproj
  75. +0 −23 src/AutoMapper/AutoMapper.csproj
  76. +16 −16 src/UnitTests/ArraysAndLists.cs
  77. +3 −2 src/UnitTests/AssertionExtensions.cs
  78. +14 −7 src/UnitTests/AutoMapperSpecBase.cs
  79. +5 −6 src/UnitTests/AutoMapperTester.cs
  80. +4 −4 src/UnitTests/BeforeAfterMapping.cs
  81. +113 −114 src/UnitTests/BidirectionalRelationships.cs
  82. +2 −2 src/UnitTests/Bug/AddingConfigurationForNonMatchingDestinationMemberBug.cs
  83. +2 −3 src/UnitTests/Bug/AllMembersNullSubstitute.cs
  84. +2 −3 src/UnitTests/Bug/AllowNullDestinationValuesBugs.cs
  85. +6 −8 src/UnitTests/Bug/AssignableCollectionBug.cs
  86. +12 −9 src/UnitTests/Bug/AutoMapperInheritanceProblemDemo.cs
  87. +4 −4 src/UnitTests/Bug/CannotConvertEnumToNullable.cs
  88. +2 −3 src/UnitTests/Bug/CollectionMapperMapsISetIncorrectly.cs
  89. +3 −4 src/UnitTests/Bug/ConditionBug.cs
  90. +3 −3 src/UnitTests/Bug/ContextValuesIncorrect.cs
  91. +4 −4 src/UnitTests/Bug/CreateMapExpressionWithIgnoredPropertyBug.cs
  92. +2 −4 src/UnitTests/Bug/CustomIEnumerableBug.cs
  93. +5 −5 src/UnitTests/Bug/DeepInheritanceIssue.cs
  94. +2 −3 src/UnitTests/Bug/DestinationValueInitializedByCtorBug.cs
  95. +2 −6 src/UnitTests/Bug/DuplicateValuesBug.cs
  96. +2 −2 src/UnitTests/Bug/EFCollections.cs
  97. +5 −6 src/UnitTests/Bug/EnumConditionsBug.cs
  98. +2 −3 src/UnitTests/Bug/EnumMatchingOnValue.cs
  99. +2 −2 src/UnitTests/Bug/ExistingArrays.cs
  100. +6 −5 src/UnitTests/Bug/IgnoreAll.cs
  101. +2 −3 src/UnitTests/Bug/InterfaceSelfMappingBug.cs
  102. +7 −5 src/UnitTests/Bug/LazyCollectionMapping.cs
  103. +2 −2 src/UnitTests/Bug/MappingToAReadOnlyCollection.cs
  104. +2 −4 src/UnitTests/Bug/MemberNamedTypeBug.cs
  105. +2 −3 src/UnitTests/Bug/MultiThreadingIssues.cs
  106. +2 −3 src/UnitTests/Bug/MultipleInterfaceInheritance.cs
  107. +4 −4 src/UnitTests/Bug/MultipleTypeConverterInterfaces.cs
  108. +3 −3 src/UnitTests/Bug/NamingConventions.cs
  109. +2 −2 src/UnitTests/Bug/NullableBytesAndEnums.cs
  110. +2 −4 src/UnitTests/Bug/NullableConverterBug.cs
  111. +4 −3 src/UnitTests/Bug/NullableEnumToNullableValueType.cs
  112. +4 −4 src/UnitTests/Bug/NullableEnums.cs
  113. +2 −3 src/UnitTests/Bug/NullablePropertiesBug.cs
  114. +2 −20 src/UnitTests/Bug/ObjectTypeMapFailure.cs
  115. +4 −5 src/UnitTests/Bug/RecognizeIxesBug.cs
  116. +2 −3 src/UnitTests/Bug/RepeatedMappingConfigurationTest.cs
  117. +11 −10 src/UnitTests/Bug/SequenceContainsNoElementsTest.cs
  118. +2 −2 src/UnitTests/Bug/SubclassMappings.cs
  119. +24 −44 src/UnitTests/CollectionMapping.cs
  120. +7 −7 src/UnitTests/ConditionalMapping.cs
  121. +2 −2 src/UnitTests/Configuration/MapperConfigurationSpecs.cs
  122. +14 −14 src/UnitTests/ConfigurationValidation.cs
  123. +8 −10 src/UnitTests/Constructors.cs
  124. +5 −5 src/UnitTests/ConversionOperators.cs
  125. +14 −14 src/UnitTests/CustomFormatters.cs
  126. +35 −35 src/UnitTests/CustomMapping.cs
  127. +56 −56 src/UnitTests/DataReaderMapping.cs
  128. +49 −49 src/UnitTests/Dictionaries.cs
  129. +9 −9 src/UnitTests/DynamicMapping.cs
  130. +40 −37 src/UnitTests/Enumerations.cs
  131. +4 −6 src/UnitTests/ExpressionBridge.cs
  132. +5 −5 src/UnitTests/ExtensionMethods.cs
  133. +6 −6 src/UnitTests/FillingExistingDestination.cs
  134. +17 −17 src/UnitTests/General.cs
  135. +5 −8 src/UnitTests/IgnoreAllTests.cs
  136. +3 −3 src/UnitTests/Indexers.cs
  137. +126 −126 src/UnitTests/InterfaceMapping.cs
  138. +12 −13 src/UnitTests/Internal/DelegateFactoryTests.cs
  139. +5 −6 src/UnitTests/Internal/PrimitiveExtensionsTester.cs
  140. +2 −2 src/UnitTests/Internationalization.cs
  141. +19 −22 src/UnitTests/Mappers/NameValueCollectionMapperTests.cs
  142. +34 −40 src/UnitTests/Mappers/ReadOnlyCollectionMapperTests.cs
  143. +4 −4 src/UnitTests/Mappers/TypeHelperTests.cs
  144. +3 −111 src/UnitTests/MappingExceptions.cs
  145. +9 −9 src/UnitTests/MappingInheritance/ConventionMappedCollectionShouldMapBaseTypes.cs
  146. +2 −3 src/UnitTests/MappingInheritance/IgnoreShouldBeInheritedIfConventionCannotMap.cs
  147. +31 −28 src/UnitTests/MappingInheritance/IncludedMappingShouldInheritBaseMappings.cs
  148. +7 −7 src/UnitTests/MappingInheritance/InheritedIgnoreShouldBeOverridenByConventionMapping.cs
  149. +2 −3 src/UnitTests/MappingInheritance/MultipleInheritedBaseMappingsOfSameTypeFails.cs
  150. +6 −6 src/UnitTests/MappingInheritance/OverrideIgnore.cs
  151. +17 −17 src/UnitTests/MappingInheritance/PropertyOnMappingShouldResolveMostSpecificType.cs
  152. +6 −6 src/UnitTests/MappingInheritance/ShouldInheritBeforeAndAfterMap.cs
  153. +9 −11 src/UnitTests/MappingInheritance/ShouldSupportOnlyDestinationTypeBeingDerived.cs
  154. +2 −2 src/UnitTests/MappingOrder.cs
  155. +23 −25 src/UnitTests/MaxDepthTests.cs
  156. +60 −124 src/UnitTests/MemberResolution.cs
  157. +4 −4 src/UnitTests/NestedContainers.cs
  158. +19 −19 src/UnitTests/NullBehavior.cs
  159. +4 −4 src/UnitTests/Profiles.cs
  160. +2 −3 src/UnitTests/PropertyMapContexts.cs
  161. +13 −12 src/UnitTests/Regression.cs
  162. +2 −3 src/UnitTests/ResolutionContextTester.cs
  163. +7 −7 src/UnitTests/ReverseMapping.cs
  164. +2 −3 src/UnitTests/Tests/MapperTests.cs
  165. +19 −19 src/UnitTests/Tests/PropertyMapSpecs.cs
  166. +191 −191 src/UnitTests/Tests/TypeMapFactorySpecs.cs
  167. +11 −11 src/UnitTests/TypeConverters.cs
  168. +6 −24 src/UnitTests/UnitTests.csproj
  169. +5 −5 src/UnitTests/ValueTypes.cs
View
@@ -9,7 +9,7 @@ properties {
$test_dir = "$build_dir\test"
$result_dir = "$build_dir\results"
$lib_dir = "$base_dir\lib"
- $pkgVersion = if ($env:build_number -ne $NULL) { $env:build_number } else { '2.2.1' }
+ $pkgVersion = if ($env:build_number -ne $NULL) { $env:build_number } else { '2.3.0' }
$version = $pkgVersion -replace "-.*$", ""
$buildNumber = $version + '.0'
$global:config = "debug"
@@ -32,7 +32,7 @@ task release {
}
task compile -depends clean {
- exec { msbuild /t:Clean /t:Build /p:Configuration=Automated$config /v:q /p:NoWarn=1591 /nologo $source_dir\AutoMapper.sln }
+ exec { msbuild /t:Clean /t:Build /p:Configuration=$config /v:q /p:NoWarn=1591 /nologo $source_dir\AutoMapper.sln }
}
task commonAssemblyInfo {
@@ -42,7 +42,7 @@ task commonAssemblyInfo {
task test {
create_directory "$build_dir\results"
- exec { & $tools_dir\nunit\nunit-console-x86.exe $build_dir/$config/UnitTests/AutoMapper.UnitTests.dll /nologo /nodots /xml=$result_dir\AutoMapper.xml }
+ exec { & $lib\xunit.net\xunit.console.clr4.x86.exe $src_dir/UnitTests/bin/$config/AutoMapper.UnitTests.dll /xml $result_dir\AutoMapper.xml }
}
task dist {
View
Binary file not shown.
View
@@ -0,0 +1,29 @@
+This license governs use of the accompanying software. If you use the software, you accept this license. If you do not accept the license, do not use the software.
+
+1. Definitions
+
+The terms "reproduce," "reproduction," "derivative works," and "distribution" have the same meaning here as under U.S. copyright law.
+
+A "contribution" is the original software, or any additions or changes to the software.
+
+A "contributor" is any person that distributes its contribution under this license.
+
+"Licensed patents" are a contributor's patent claims that read directly on its contribution.
+
+2. Grant of Rights
+
+(A) Copyright Grant- Subject to the terms of this license, including the license conditions and limitations in section 3, each contributor grants you a non-exclusive, worldwide, royalty-free copyright license to reproduce its contribution, prepare derivative works of its contribution, and distribute its contribution or any derivative works that you create.
+
+(B) Patent Grant- Subject to the terms of this license, including the license conditions and limitations in section 3, each contributor grants you a non-exclusive, worldwide, royalty-free license under its licensed patents to make, have made, use, sell, offer for sale, import, and/or otherwise dispose of its contribution in the software or derivative works of the contribution in the software.
+
+3. Conditions and Limitations
+
+(A) No Trademark License- This license does not grant you rights to use any contributors' name, logo, or trademarks.
+
+(B) If you bring a patent claim against any contributor over patents that you claim are infringed by the software, your patent license from such contributor to the software ends automatically.
+
+(C) If you distribute any portion of the software, you must retain all copyright, patent, trademark, and attribution notices that are present in the software.
+
+(D) If you distribute any portion of the software in source code form, you may do so only under this license by including a complete copy of this license with your distribution. If you distribute any portion of the software in compiled or object code form, you may only do so under a license that complies with this license.
+
+(E) The software is licensed "as-is." You bear the risk of using it. The contributors give no express warranties, guarantees or conditions. You may have additional consumer rights under your local laws which this license cannot change. To the extent permitted under your local laws, the contributors exclude the implied warranties of merchantability, fitness for a particular purpose and non-infringement.
View
@@ -0,0 +1,128 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+ <xsl:output method="html"/>
+ <xsl:template match="/">
+ <xsl:text disable-output-escaping="yes"><![CDATA[<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">]]></xsl:text>
+ <html>
+ <head>
+ <title>
+ xUnit.net Test Results - <xsl:value-of select="@name"/>
+ </title>
+ <style type="text/css">
+ body { font-family: Calibri, Verdana, Arial, sans-serif; background-color: White; color: Black; }
+ h2,h3,h4,h5 { margin: 0; padding: 0; }
+ h3 { font-weight: normal; }
+ h5 { font-weight: normal; font-style: italic; margin-bottom: 0.75em; }
+ pre { font-family: Consolas; font-size: 85%; margin: 0 0 0 1em; padding: 0; }
+ .divided { border-top: solid 1px #f0f5fa; padding-top: 0.5em; }
+ .row, .altrow { padding: 0.1em 0.3em; }
+ .row { background-color: #f0f5fa; }
+ .altrow { background-color: #e1ebf4; }
+ .success, .failure, .skipped { font-family: Arial Unicode MS; font-weight: normal; float: left; width: 1em; display: block; }
+ .success { color: #0c0; }
+ .failure { color: #c00; }
+ .skipped { color: #cc0; }
+ .timing { float: right; }
+ .indent { margin: 0.25em 0 0.5em 2em; }
+ .clickable { cursor: pointer; }
+ .testcount { font-size: 85%; }
+ </style>
+ <script language="javascript">
+ function ToggleClass(id) {
+ var elem = document.getElementById(id);
+ if (elem.style.display == "none") {
+ elem.style.display = "block";
+ }
+ else {
+ elem.style.display = "none";
+ }
+ }
+ </script>
+ </head>
+ <body>
+ <xsl:apply-templates/>
+ </body>
+ </html>
+ </xsl:template>
+
+ <xsl:template match="assemblies">
+ <xsl:apply-templates/>
+ </xsl:template>
+
+ <xsl:template match="assembly">
+ <h3 class="divided"><b>Results for <xsl:value-of select="@name"/></b></h3>
+ <div>
+ Tests run: <a href="#all"><b><xsl:value-of select="@total"/></b></a> &#160;
+ Failures: <a href="#failures"><b><xsl:value-of select="@failed"/></b></a>,
+ Skipped: <a href="#skipped"><b><xsl:value-of select="@skipped"/></b></a>,
+ Run time: <b><xsl:value-of select="@time"/>s</b>
+ </div>
+ <xsl:if test="class/test[@result='Fail']">
+ <br />
+ <h2><a name="failures"></a>Failed tests</h2>
+ <xsl:apply-templates select="class/test[@result='Fail']"><xsl:sort select="@name"/></xsl:apply-templates>
+ </xsl:if>
+ <xsl:if test="class/failure">
+ <br />
+ <h2><a name="failures"></a>Failed fixtures</h2>
+ <xsl:apply-templates select="class/failure"><xsl:sort select="../@name"/></xsl:apply-templates>
+ </xsl:if>
+ <xsl:if test="@skipped > 0">
+ <br />
+ <h2><a name="skipped"></a>Skipped tests</h2>
+ <xsl:apply-templates select="class/test[@result='Skip']"><xsl:sort select="@name"/></xsl:apply-templates>
+ </xsl:if>
+ <br />
+ <h2><a name="all"></a>All tests</h2>
+ <h5>Click test class name to expand/collapse test details</h5>
+ <xsl:apply-templates select="class"><xsl:sort select="@name"/></xsl:apply-templates>
+ <br /><h5>Results generated <xsl:value-of select="@run-date"/> at <xsl:value-of select="@run-time"/></h5>
+ </xsl:template>
+
+ <xsl:template match="test">
+ <div>
+ <xsl:attribute name="class"><xsl:if test="(position() mod 2 = 0)">alt</xsl:if>row</xsl:attribute>
+ <xsl:if test="@result!='Skip'"><span class="timing"><xsl:value-of select="@time"/>s</span></xsl:if>
+ <xsl:if test="@result='Skip'"><span class="timing">Skipped</span><span class="skipped">&#x2762;</span></xsl:if>
+ <xsl:if test="@result='Fail'"><span class="failure">&#x2718;</span></xsl:if>
+ <xsl:if test="@result='Pass'"><span class="success">&#x2714;</span></xsl:if>
+ &#160;<xsl:value-of select="@name"/>
+ <xsl:if test="child::node()/message"> : <xsl:value-of select="child::node()/message"/></xsl:if>
+ <br clear="all" />
+ <xsl:if test="failure/stack-trace">
+ <pre><xsl:value-of select="failure/stack-trace"/></pre>
+ </xsl:if>
+ <xsl:if test="output">
+ <h4>Output</h4>
+ <pre><xsl:value-of select="output"/></pre>
+ </xsl:if>
+ </div>
+ </xsl:template>
+
+ <xsl:template match="failure">
+ <span class="failure">&#x2718;</span> <xsl:value-of select="../@name"/> : <xsl:value-of select="message"/><br clear="all"/>
+ Stack Trace:<br />
+ <pre><xsl:value-of select="stack-trace"/></pre>
+ </xsl:template>
+
+ <xsl:template match="class">
+ <h3>
+ <span class="timing"><xsl:value-of select="@time"/>s</span>
+ <span class="clickable">
+ <xsl:attribute name="onclick">ToggleClass('class<xsl:value-of select="position()"/>')</xsl:attribute>
+ <xsl:attribute name="ondblclick">ToggleClass('class<xsl:value-of select="position()"/>')</xsl:attribute>
+ <xsl:if test="@failed > 0"><span class="failure">&#x2718;</span></xsl:if>
+ <xsl:if test="@failed = 0"><span class="success">&#x2714;</span></xsl:if>
+ &#160;<xsl:value-of select="@name"/>
+ &#160;<span class="testcount">(<xsl:value-of select="@total"/>&#160;test<xsl:if test="@total > 1">s</xsl:if>)</span>
+ </span>
+ <br clear="all" />
+ </h3>
+ <div class="indent">
+ <xsl:if test="@failed = 0"><xsl:attribute name="style">display: none;</xsl:attribute></xsl:if>
+ <xsl:attribute name="id">class<xsl:value-of select="position()"/></xsl:attribute>
+ <xsl:apply-templates select="test"><xsl:sort select="@name"/></xsl:apply-templates>
+ </div>
+ </xsl:template>
+
+</xsl:stylesheet>
View
@@ -0,0 +1,121 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+ <xsl:output cdata-section-elements="message stack-trace"/>
+
+ <xsl:template match="/">
+ <xsl:apply-templates/>
+ </xsl:template>
+
+ <xsl:template match="assembly">
+ <test-results>
+ <xsl:attribute name="name">
+ <xsl:value-of select="@name"/>
+ </xsl:attribute>
+ <xsl:attribute name="date">
+ <xsl:value-of select="@run-date"/>
+ </xsl:attribute>
+ <xsl:attribute name="time">
+ <xsl:value-of select="@run-time"/>
+ </xsl:attribute>
+ <xsl:attribute name="total">
+ <xsl:value-of select="@total"/>
+ </xsl:attribute>
+ <xsl:attribute name="failures">
+ <xsl:value-of select="@failed"/>
+ </xsl:attribute>
+ <xsl:attribute name="not-run">
+ <xsl:value-of select="@skipped"/>
+ </xsl:attribute>
+ <test-suite>
+ <xsl:attribute name="name">
+ <xsl:value-of select="@name"/>
+ </xsl:attribute>
+ <xsl:attribute name="success">
+ <xsl:if test="@failed > 0">False</xsl:if>
+ <xsl:if test="@failed = 0">True</xsl:if>
+ </xsl:attribute>
+ <xsl:attribute name="time">
+ <xsl:value-of select="@time"/>
+ </xsl:attribute>
+ <results>
+ <xsl:apply-templates select="class"/>
+ </results>
+ </test-suite>
+ </test-results>
+ </xsl:template>
+
+ <xsl:template match="class">
+ <test-suite>
+ <xsl:attribute name="name">
+ <xsl:value-of select="@name"/>
+ </xsl:attribute>
+ <xsl:attribute name="success">
+ <xsl:if test="@failed > 0">False</xsl:if>
+ <xsl:if test="@failed = 0">True</xsl:if>
+ </xsl:attribute>
+ <xsl:attribute name="time">
+ <xsl:value-of select="@time"/>
+ </xsl:attribute>
+ <xsl:if test="failure">
+ <xsl:copy-of select="failure"/>
+ </xsl:if>
+ <xsl:if test="reason">
+ <reason>
+ <xsl:apply-templates select="reason"/>
+ </reason>
+ </xsl:if>
+ <results>
+ <xsl:apply-templates select="test"/>
+ </results>
+ </test-suite>
+ </xsl:template>
+
+ <xsl:template match="test">
+ <test-case>
+ <xsl:attribute name="name">
+ <xsl:value-of select="@name"/>
+ </xsl:attribute>
+ <xsl:attribute name="executed">
+ <xsl:if test="@result='Skip'">False</xsl:if>
+ <xsl:if test="@result!='Skip'">True</xsl:if>
+ </xsl:attribute>
+ <xsl:if test="@result!='Skip'">
+ <xsl:attribute name="success">
+ <xsl:if test="@result='Fail'">False</xsl:if>
+ <xsl:if test="@result='Pass'">True</xsl:if>
+ </xsl:attribute>
+ </xsl:if>
+ <xsl:if test="@time">
+ <xsl:attribute name="time">
+ <xsl:value-of select="@time"/>
+ </xsl:attribute>
+ </xsl:if>
+ <xsl:apply-templates select="traits"/>
+ <xsl:apply-templates select="failure"/>
+ </test-case>
+ </xsl:template>
+
+ <xsl:template match="traits">
+ <properties>
+ <xsl:apply-templates select="trait"/>
+ </properties>
+ </xsl:template>
+
+ <xsl:template match="trait">
+ <property>
+ <xsl:attribute name="name">
+ <xsl:value-of select="@name"/>
+ </xsl:attribute>
+ <xsl:attribute name="value">
+ <xsl:value-of select="@value"/>
+ </xsl:attribute>
+ </property>
+ </xsl:template>
+
+ <xsl:template match="failure">
+ <failure>
+ <xsl:copy-of select="node()"/>
+ </failure>
+ </xsl:template>
+
+</xsl:stylesheet>
Binary file not shown.
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<configuration>
+
+ <configSections>
+ <section name="xunit" type="Xunit.ConsoleClient.XunitConsoleConfigurationSection, xunit.console.clr4"/>
+ </configSections>
+
+ <xunit>
+ <transforms>
+ <add
+ commandline="html"
+ xslfile="HTML.xslt"
+ description="output results to HTML file"/>
+ <add
+ commandline="nunit"
+ xslfile="NUnitXml.xslt"
+ description="output results to NUnit-style XML file"/>
+ </transforms>
+ </xunit>
+
+</configuration>
Binary file not shown.
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<configuration>
+
+ <configSections>
+ <section name="xunit" type="Xunit.ConsoleClient.XunitConsoleConfigurationSection, xunit.console.clr4.x86"/>
+ </configSections>
+
+ <xunit>
+ <transforms>
+ <add
+ commandline="html"
+ xslfile="HTML.xslt"
+ description="output results to HTML file"/>
+ <add
+ commandline="nunit"
+ xslfile="NUnitXml.xslt"
+ description="output results to NUnit-style XML file"/>
+ </transforms>
+ </xunit>
+
+</configuration>
Binary file not shown.
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<configuration>
+
+ <configSections>
+ <section name="xunit" type="Xunit.ConsoleClient.XunitConsoleConfigurationSection, xunit.console"/>
+ </configSections>
+
+ <xunit>
+ <transforms>
+ <add
+ commandline="html"
+ xslfile="HTML.xslt"
+ description="output results to HTML file"/>
+ <add
+ commandline="nunit"
+ xslfile="NUnitXml.xslt"
+ description="output results to NUnit-style XML file"/>
+ </transforms>
+ </xunit>
+
+</configuration>
Binary file not shown.
Oops, something went wrong.

0 comments on commit 2ef0a60

Please sign in to comment.