1+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2+ <!-- Got this from here: http://bazaar.launchpad.net/~charlie.poole/nunit-summary/trunk/view/head:/Transforms/DefaultTransform.xslt -->
3+ <xsl : stylesheet version =" 1.0" xmlns : xsl =" http://www.w3.org/1999/XSL/Transform" >
4+ <xsl : output method =' text' />
5+ <xsl : template match =" /" >
6+ <xsl : apply-templates />
7+ </xsl : template >
8+
9+ <xsl : template match =" test-results" >
10+ <xsl : text >< b> </xsl : text >
11+ <xsl : value-of select =" @name" />
12+ <xsl : text >< /b>< br>< br>

 </xsl : text >
13+
14+ <xsl : text >< b> NUnit Version:< /b> </xsl : text >
15+ <xsl : value-of select =" environment/@nunit-version" />
16+ <xsl : text >& nbsp;& nbsp;& nbsp;< b> Date:< /b> </xsl : text >
17+ <xsl : value-of select =" @date" />
18+ <xsl : text >& nbsp;& nbsp;& nbsp;< b> Time:< /b> </xsl : text >
19+ <xsl : value-of select =" @time" />
20+ <xsl : text >< br>< br>

 </xsl : text >
21+
22+ <xsl : text >< b> Runtime Environment -< /b>< br>
 </xsl : text >
23+ <xsl : text >& nbsp;& nbsp;& nbsp;& nbsp;& nbsp;& nbsp;< b> OS Version:< /b> </xsl : text >
24+ <xsl : value-of select =" environment/@os-version" />
25+ <xsl : text >< br>
 </xsl : text >
26+ <xsl : text >& nbsp;& nbsp;& nbsp;< b> CLR Version:< /b> </xsl : text >
27+ <xsl : value-of select =" environment/@clr-version" />
28+ <xsl : text >< br>< br>

 </xsl : text >
29+
30+ <xsl : text >< b> Tests run: </xsl : text >
31+ <xsl : value-of select =" @total" />
32+ <xsl : choose >
33+ <xsl : when test =" substring(environment/@nunit-version,1,3)>='2.5'" >
34+ <xsl : text >, Errors: </xsl : text >
35+ <xsl : value-of select =" @errors" />
36+ <xsl : text >, Failures: </xsl : text >
37+ <xsl : value-of select =" @failures" />
38+ <xsl : if test =" @inconclusive" >
39+ <!-- Introduced in 2.5.1 -->
40+ <xsl : text >, Inconclusive: </xsl : text >
41+ <xsl : value-of select =" @inconclusive" />
42+ </xsl : if >
43+ <xsl : text >, Time: </xsl : text >
44+ <xsl : value-of select =" test-suite/@time" />
45+ <xsl : text > seconds< br> </xsl : text >
46+ <xsl : text >& nbsp;& nbsp;& nbsp;Not run: </xsl : text >
47+ <xsl : value-of select =" @not-run" />
48+ <xsl : text >, Invalid: </xsl : text >
49+ <xsl : value-of select =" @invalid" />
50+ <xsl : text >, Ignored: </xsl : text >
51+ <xsl : value-of select =" @ignored" />
52+ <xsl : text >, Skipped: </xsl : text >
53+ <xsl : value-of select =" @skipped" />
54+ <xsl : text >< /b>< br>< br>
 </xsl : text >
55+ </xsl : when >
56+ <xsl : otherwise >
57+ <xsl : text >, Failures: </xsl : text >
58+ <xsl : value-of select =" @failures" />
59+ <xsl : text >, Not run: </xsl : text >
60+ <xsl : value-of select =" @not-run" />
61+ <xsl : text >, Time: </xsl : text >
62+ <xsl : value-of select =" test-suite/@time" />
63+ <xsl : text > seconds< /b>< br>< br> </xsl : text >
64+ </xsl : otherwise >
65+ </xsl : choose >
66+ <xsl : text >
67+ </xsl : text >
68+
69+ <xsl : if test =" //test-case[failure]" >
70+ <xsl : text >< h4> Failures:< /h4>
 </xsl : text >
71+ <xsl : text >< ol>
 </xsl : text >
72+ <xsl : apply-templates select =" //test-case[failure]" />
73+ <xsl : text >< /ol>
 </xsl : text >
74+ </xsl : if >
75+
76+ <xsl : if test =" //test-case[@executed='False']" >
77+ <xsl : text >< h4> Tests not run:< /h4>
 </xsl : text >
78+ <xsl : text >< ol>
 </xsl : text >
79+ <xsl : apply-templates select =" //test-case[@executed='False']" />
80+ <xsl : text >< /ol>
 </xsl : text >
81+ </xsl : if >
82+
83+ <xsl : text disable-output-escaping =' yes' >
 </xsl : text >
84+ <xsl : text >< hr>
 </xsl : text >
85+ </xsl : template >
86+
87+ <xsl : template match =" test-case" >
88+ <xsl : text >< pre>
 </xsl : text >
89+ <xsl : text >< li> </xsl : text >
90+ <xsl : value-of select =" @name" />
91+ <xsl : text > : </xsl : text >
92+ <xsl : value-of select =" child::node()/message" />
93+ <xsl : text disable-output-escaping =' yes' >
 </xsl : text >
94+ <xsl : if test =" failure" >
95+ <xsl : value-of select =" failure/stack-trace" />
96+ </xsl : if >
97+ <xsl : text >< /pre>
 </xsl : text >
98+ </xsl : template >
99+
100+ </xsl : stylesheet >
0 commit comments