Skip to content

Commit

Permalink
Upgrade to xunit.net 1.9. Also use single build.bat to build, test an…
Browse files Browse the repository at this point in the history
…d nuget-pack.
  • Loading branch information
andrewdavey committed Feb 11, 2012
1 parent b318855 commit 8c75f38
Show file tree
Hide file tree
Showing 21 changed files with 227 additions and 58 deletions.
9 changes: 0 additions & 9 deletions build-nuget.bat

This file was deleted.

18 changes: 15 additions & 3 deletions build.bat
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -7,9 +7,21 @@ if exist build\bin. (
) )


%msbuild% src\Cassette.UnitTests\Cassette.UnitTests.csproj /p:Configuration=Release /p:OutDir=..\..\build\bin\ %msbuild% src\Cassette.UnitTests\Cassette.UnitTests.csproj /p:Configuration=Release /p:OutDir=..\..\build\bin\

%msbuild% src\Cassette.IntegrationTests\Cassette.IntegrationTests.csproj /p:Configuration=Release /p:OutDir=..\..\build\bin\ %msbuild% src\Cassette.IntegrationTests\Cassette.IntegrationTests.csproj /p:Configuration=Release /p:OutDir=..\..\build\bin\

%msbuild% src\Cassette.Web\Cassette.Web.csproj /p:Configuration=Release /p:OutDir=..\..\build\bin\ %msbuild% src\Cassette.Web\Cassette.Web.csproj /p:Configuration=Release /p:OutDir=..\..\build\bin\
%msbuild% src\Cassette.Views\Cassette.Views.csproj /p:Configuration=Release /p:OutDir=..\..\build\bin\



tools\xunit.console.clr4.x86.exe build\bin\Cassette.UnitTests.dll /noshadow
tools\xunit.console.clr4.x86.exe build\bin\Cassette.IntegrationTests.dll /noshadow

if exist build\nuget. (
del /S /Q build\nuget
) else (
mkdir build\nuget
)


%msbuild% src\Cassette.Views\Cassette.Views.csproj /p:Configuration=Release /p:OutDir=..\..\build\bin\ nuget pack -Build src\Cassette\Cassette.csproj -Symbols -OutputDirectory build\nuget -Prop Configuration=Release
nuget pack -Build src\Cassette.Views\Cassette.Views.csproj -Symbols -OutputDirectory build\nuget -Prop Configuration=Release
nuget pack -Build src\Cassette.Web\Cassette.Web.csproj -Symbols -OutputDirectory build\nuget -Prop Configuration=Release
5 changes: 0 additions & 5 deletions test.bat

This file was deleted.

68 changes: 33 additions & 35 deletions tools/HTML.xslt
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -40,43 +40,41 @@
</script> </script>
</head> </head>
<body> <body>
<xsl:apply-templates/> <h3 class="divided"><b>Assemblies Run</b></h3>
<xsl:apply-templates select="//assembly"/>

<h3 class="divided"><b>Summary</b></h3>
<div>
Tests run: <a href="#all"><b><xsl:value-of select="sum(//assembly/@total)"/></b></a> &#160;
Failures: <a href="#failures"><b><xsl:value-of select="sum(//assembly/@failed)"/></b></a>,
Skipped: <a href="#skipped"><b><xsl:value-of select="sum(//assembly/@skipped)"/></b></a>,
Run time: <b><xsl:value-of select="sum(//assembly/@time)"/>s</b>
</div>
<xsl:if test="//assembly/class/test[@result='Fail']">
<br />
<h2><a name="failures"></a>Failed tests</h2>
<xsl:apply-templates select="//assembly/class/test[@result='Fail']"><xsl:sort select="@name"/></xsl:apply-templates>
</xsl:if>
<xsl:if test="//assembly/class/failure">
<br />
<h2><a name="failures"></a>Failed fixtures</h2>
<xsl:apply-templates select="//assembly/class/failure"><xsl:sort select="../@name"/></xsl:apply-templates>
</xsl:if>
<xsl:if test="//assembly/@skipped > 0">
<br />
<h2><a name="skipped"></a>Skipped tests</h2>
<xsl:apply-templates select="//assembly/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="//assembly/class"><xsl:sort select="@name"/></xsl:apply-templates>
</body> </body>
</html> </html>
</xsl:template> </xsl:template>


<xsl:template match="assemblies">
<xsl:apply-templates/>
</xsl:template>

<xsl:template match="assembly"> <xsl:template match="assembly">
<h3 class="divided"><b>Results for <xsl:value-of select="@name"/></b></h3> <div><xsl:value-of select="@name"/></div>
<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>


<xsl:template match="test"> <xsl:template match="test">
Expand Down Expand Up @@ -109,8 +107,8 @@
<h3> <h3>
<span class="timing"><xsl:value-of select="@time"/>s</span> <span class="timing"><xsl:value-of select="@time"/>s</span>
<span class="clickable"> <span class="clickable">
<xsl:attribute name="onclick">ToggleClass('class<xsl:value-of select="position()"/>')</xsl:attribute> <xsl:attribute name="onclick">ToggleClass('class<xsl:value-of select="generate-id()"/>')</xsl:attribute>
<xsl:attribute name="ondblclick">ToggleClass('class<xsl:value-of select="position()"/>')</xsl:attribute> <xsl:attribute name="ondblclick">ToggleClass('class<xsl:value-of select="generate-id()"/>')</xsl:attribute>
<xsl:if test="@failed > 0"><span class="failure">&#x2718;</span></xsl:if> <xsl:if test="@failed > 0"><span class="failure">&#x2718;</span></xsl:if>
<xsl:if test="@failed = 0"><span class="success">&#x2714;</span></xsl:if> <xsl:if test="@failed = 0"><span class="success">&#x2714;</span></xsl:if>
&#160;<xsl:value-of select="@name"/> &#160;<xsl:value-of select="@name"/>
Expand All @@ -120,7 +118,7 @@
</h3> </h3>
<div class="indent"> <div class="indent">
<xsl:if test="@failed = 0"><xsl:attribute name="style">display: none;</xsl:attribute></xsl:if> <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:attribute name="id">class<xsl:value-of select="generate-id()"/></xsl:attribute>
<xsl:apply-templates select="test"><xsl:sort select="@name"/></xsl:apply-templates> <xsl:apply-templates select="test"><xsl:sort select="@name"/></xsl:apply-templates>
</div> </div>
</xsl:template> </xsl:template>
Expand Down
Binary file modified tools/xunit.console.clr4.exe
Binary file not shown.
Binary file modified tools/xunit.console.clr4.x86.exe
Binary file not shown.
Binary file modified tools/xunit.console.exe
Binary file not shown.
Binary file modified tools/xunit.console.x86.exe
Binary file not shown.
Binary file modified tools/xunit.dll
Binary file not shown.
Binary file modified tools/xunit.extensions.dll
Binary file not shown.
8 changes: 8 additions & 0 deletions tools/xunit.extensions.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified tools/xunit.gui.clr4.exe
Binary file not shown.
Binary file modified tools/xunit.gui.clr4.x86.exe
Binary file not shown.
Binary file modified tools/xunit.gui.exe
Binary file not shown.
Binary file modified tools/xunit.gui.x86.exe
Binary file not shown.
Binary file modified tools/xunit.installer.exe
Binary file not shown.
Binary file modified tools/xunit.runner.msbuild.dll
Binary file not shown.
Binary file modified tools/xunit.runner.tdnet.dll
Binary file not shown.
Binary file modified tools/xunit.runner.utility.dll
Binary file not shown.
6 changes: 3 additions & 3 deletions tools/xunit.runner.utility.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 8c75f38

Please sign in to comment.