Welcome to mirror list, hosted at ThFree Co, Russian Federation.

nunit_transform.xslt « mono-xmltool « tools « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 52c09e72dddf8d06f21d40d032d9ef8022f93fc9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?xml version="1.0" encoding="UTF-8" ?>

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:output method="text" indent="no"/>
<xsl:strip-space elements="*" />

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

<xsl:template match="//test-case[@success='False']">
		<xsl:text>		
		</xsl:text>	
		<xsl:value-of select="@name" />	
</xsl:template>

<xsl:template match="test-results">
	<xsl:if test="@failures!='0'">
		<xsl:text>Failures number :</xsl:text>
		<xsl:value-of select="@failures"/>
				<xsl:text>
		Failed tests:</xsl:text>
		<xsl:apply-templates select="//test-case"/>
	</xsl:if>
</xsl:template>

</xsl:stylesheet>