-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* added XSLT transform (from here: https://github.com/nunit/nunit-transforms ). Now tests are uploaded in Junit format. * Upgrade Nunit version. include info page viewd on TFS Extension page.
- Loading branch information
Showing
10 changed files
with
109 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> | ||
<xsl:output method="xml" indent="yes"/> | ||
|
||
<xsl:template match="/test-run"> | ||
<testsuites tests="{@testcasecount}" failures="{@failed}" disabled="{@skipped}" time="{@duration}"> | ||
<xsl:apply-templates/> | ||
</testsuites> | ||
</xsl:template> | ||
|
||
<xsl:template match="test-suite"> | ||
<xsl:if test="test-case"> | ||
<testsuite tests="{@testcasecount}" time="{@duration}" errors="{@testcasecount - @passed - @skipped - @failed}" failures="{@failed}" skipped="{@skipped}" timestamp="{@start-time}"> | ||
<xsl:attribute name="name"> | ||
<xsl:for-each select="ancestor-or-self::test-suite/@name"> | ||
<xsl:value-of select="concat(., '.')"/> | ||
</xsl:for-each> | ||
</xsl:attribute> | ||
<xsl:apply-templates select="test-case"/> | ||
</testsuite> | ||
<xsl:apply-templates select="test-suite"/> | ||
</xsl:if> | ||
<xsl:if test="not(test-case)"> | ||
<xsl:apply-templates/> | ||
</xsl:if> | ||
</xsl:template> | ||
|
||
<xsl:template match="test-case"> | ||
<testcase name="{@name}" assertions="{@asserts}" time="{@duration}" status="{@result}" classname="{@classname}"> | ||
<xsl:if test="@runstate = 'Skipped' or @runstate = 'Ignored'"> | ||
<skipped/> | ||
</xsl:if> | ||
|
||
<xsl:apply-templates/> | ||
</testcase> | ||
</xsl:template> | ||
|
||
<xsl:template match="command-line"/> | ||
<xsl:template match="settings"/> | ||
|
||
<xsl:template match="output"> | ||
<system-out> | ||
<xsl:value-of select="output"/> | ||
</system-out> | ||
</xsl:template> | ||
|
||
<xsl:template match="stack-trace"> | ||
</xsl:template> | ||
|
||
<xsl:template match="test-case/failure"> | ||
<failure message="{./message}"> | ||
<xsl:value-of select="./stack-trace"/> | ||
</failure> | ||
</xsl:template> | ||
|
||
<xsl:template match="test-suite/failure"/> | ||
|
||
<xsl:template match="test-case/reason"> | ||
<skipped message="{./message}"/> | ||
</xsl:template> | ||
|
||
<xsl:template match="test-suite/reason"/> | ||
|
||
<xsl:template match="properties"/> | ||
</xsl:stylesheet> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,7 @@ | |
"version": { | ||
"Major": 0, | ||
"Minor": 0, | ||
"Patch": 3 | ||
"Patch": 4 | ||
}, | ||
"demands": [ | ||
"Cmd" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
This extension includes build step to run Nunit3 with OpenCover and displays result on build page. | ||
|
||
The Custom build step is bundeled with the public available nuget packages of | ||
NUnit 3.4.1 https://github.com/nunit/nunit.org and https://github.com/nunit/nunit-transforms | ||
OpenCover 4.6.519 https://github.com/OpenCover/opencover | ||
ReportGenerator 2.4.5.0 https://github.com/danielpalme/ReportGenerator | ||
|
||
For Licence Info see the included directories or the corresponding web pages. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters