Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: blinky_max32630fthr
features/nanostack/FEATURE_NANOSTACK/coap-service/junit_xsl.xslt@3:1198227e6421, 2016-12-16 (annotated)
- Committer:
- switches
- Date:
- Fri Dec 16 16:27:57 2016 +0000
- Revision:
- 3:1198227e6421
- Parent:
- 0:5c4d7b2438d3
Changed ADC scale for MAX32625 platforms to 1.2V full scale to match MAX32630 platforms
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
switches | 0:5c4d7b2438d3 | 1 | <?xml version="1.0" encoding="UTF-8" ?> |
switches | 0:5c4d7b2438d3 | 2 | <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> |
switches | 0:5c4d7b2438d3 | 3 | |
switches | 0:5c4d7b2438d3 | 4 | <xsl:output encoding="UTF-8" indent="yes" method="html"/> |
switches | 0:5c4d7b2438d3 | 5 | <xsl:strip-space elements="*"/> |
switches | 0:5c4d7b2438d3 | 6 | |
switches | 0:5c4d7b2438d3 | 7 | <xsl:variable name="list" |
switches | 0:5c4d7b2438d3 | 8 | select="document('index.xml')/list" /> |
switches | 0:5c4d7b2438d3 | 9 | |
switches | 0:5c4d7b2438d3 | 10 | <xsl:template match="/"> |
switches | 0:5c4d7b2438d3 | 11 | <h1> |
switches | 0:5c4d7b2438d3 | 12 | Unittest report |
switches | 0:5c4d7b2438d3 | 13 | </h1> |
switches | 0:5c4d7b2438d3 | 14 | |
switches | 0:5c4d7b2438d3 | 15 | <p> |
switches | 0:5c4d7b2438d3 | 16 | <b> |
switches | 0:5c4d7b2438d3 | 17 | Total tests run <xsl:value-of select="sum(document($list/entry/@name)/testsuite/@tests)"/> |
switches | 0:5c4d7b2438d3 | 18 | , failures: <xsl:value-of select="sum(document($list/entry/@name)/testsuite/@failures) + sum(document($list/entry/@name)/testsuite/@errors)"/> |
switches | 0:5c4d7b2438d3 | 19 | </b> |
switches | 0:5c4d7b2438d3 | 20 | |
switches | 0:5c4d7b2438d3 | 21 | <xsl:for-each select="document($list/entry/@name)" > |
switches | 0:5c4d7b2438d3 | 22 | <xsl:apply-templates select="testsuite"/> |
switches | 0:5c4d7b2438d3 | 23 | </xsl:for-each> |
switches | 0:5c4d7b2438d3 | 24 | </p> |
switches | 0:5c4d7b2438d3 | 25 | </xsl:template> |
switches | 0:5c4d7b2438d3 | 26 | |
switches | 0:5c4d7b2438d3 | 27 | <xsl:template match="testsuite"> |
switches | 0:5c4d7b2438d3 | 28 | <h2> |
switches | 0:5c4d7b2438d3 | 29 | <xsl:value-of select="@name" /> |
switches | 0:5c4d7b2438d3 | 30 | </h2> |
switches | 0:5c4d7b2438d3 | 31 | <table border="1" cellSpacing="0" cellPadding="10" > |
switches | 0:5c4d7b2438d3 | 32 | <tr> |
switches | 0:5c4d7b2438d3 | 33 | <th>Tests run</th> |
switches | 0:5c4d7b2438d3 | 34 | <th>Tests failed</th> |
switches | 0:5c4d7b2438d3 | 35 | <th>Other errors</th> |
switches | 0:5c4d7b2438d3 | 36 | </tr> |
switches | 0:5c4d7b2438d3 | 37 | <tr> |
switches | 0:5c4d7b2438d3 | 38 | <td><xsl:value-of select="@tests"/></td> |
switches | 0:5c4d7b2438d3 | 39 | <td><xsl:value-of select="@failures"/></td> |
switches | 0:5c4d7b2438d3 | 40 | <td><xsl:value-of select="@errors"/></td> |
switches | 0:5c4d7b2438d3 | 41 | </tr> |
switches | 0:5c4d7b2438d3 | 42 | </table> |
switches | 0:5c4d7b2438d3 | 43 | <br/> |
switches | 0:5c4d7b2438d3 | 44 | <table border="1" cellSpacing="0" cellPadding="10" > |
switches | 0:5c4d7b2438d3 | 45 | <tr> |
switches | 0:5c4d7b2438d3 | 46 | <th>Tests name</th> |
switches | 0:5c4d7b2438d3 | 47 | <th>PASS/FAIL</th> |
switches | 0:5c4d7b2438d3 | 48 | <th>Failing case</th> |
switches | 0:5c4d7b2438d3 | 49 | <th>Reason</th> |
switches | 0:5c4d7b2438d3 | 50 | </tr> |
switches | 0:5c4d7b2438d3 | 51 | <xsl:apply-templates select="testcase"/> |
switches | 0:5c4d7b2438d3 | 52 | </table> |
switches | 0:5c4d7b2438d3 | 53 | </xsl:template> |
switches | 0:5c4d7b2438d3 | 54 | |
switches | 0:5c4d7b2438d3 | 55 | <xsl:template match="testcase"> |
switches | 0:5c4d7b2438d3 | 56 | <xsl:choose> |
switches | 0:5c4d7b2438d3 | 57 | <xsl:when test="failure"> |
switches | 0:5c4d7b2438d3 | 58 | <tr><td><font color="#FF0000"><xsl:value-of select="@name" /></font></td><xsl:apply-templates select="failure"/></tr> |
switches | 0:5c4d7b2438d3 | 59 | </xsl:when> |
switches | 0:5c4d7b2438d3 | 60 | <xsl:when test="error"> |
switches | 0:5c4d7b2438d3 | 61 | <tr><td><font color="#FF0000"><xsl:value-of select="@name" /></font></td><xsl:apply-templates select="error"/></tr> |
switches | 0:5c4d7b2438d3 | 62 | </xsl:when> |
switches | 0:5c4d7b2438d3 | 63 | <xsl:otherwise> |
switches | 0:5c4d7b2438d3 | 64 | <tr><td><xsl:value-of select="@name" /></td><td><font color="#00FF00">PASS</font></td><td></td><td></td></tr> |
switches | 0:5c4d7b2438d3 | 65 | </xsl:otherwise> |
switches | 0:5c4d7b2438d3 | 66 | </xsl:choose> |
switches | 0:5c4d7b2438d3 | 67 | </xsl:template> |
switches | 0:5c4d7b2438d3 | 68 | |
switches | 0:5c4d7b2438d3 | 69 | <xsl:template match="failure"> |
switches | 0:5c4d7b2438d3 | 70 | <td> |
switches | 0:5c4d7b2438d3 | 71 | <b><font color="#FF0000">FAIL</font></b> |
switches | 0:5c4d7b2438d3 | 72 | </td> |
switches | 0:5c4d7b2438d3 | 73 | <td> |
switches | 0:5c4d7b2438d3 | 74 | <font color="#ff0000"> |
switches | 0:5c4d7b2438d3 | 75 | <xsl:value-of select="@message" /> |
switches | 0:5c4d7b2438d3 | 76 | </font> |
switches | 0:5c4d7b2438d3 | 77 | </td> |
switches | 0:5c4d7b2438d3 | 78 | <td> |
switches | 0:5c4d7b2438d3 | 79 | <font color="#ff0000"> |
switches | 0:5c4d7b2438d3 | 80 | <xsl:value-of select="@type" /> |
switches | 0:5c4d7b2438d3 | 81 | </font> |
switches | 0:5c4d7b2438d3 | 82 | </td> |
switches | 0:5c4d7b2438d3 | 83 | </xsl:template> |
switches | 0:5c4d7b2438d3 | 84 | |
switches | 0:5c4d7b2438d3 | 85 | <xsl:template match="error"> |
switches | 0:5c4d7b2438d3 | 86 | <td> |
switches | 0:5c4d7b2438d3 | 87 | <b><font color="#FF0000">FAIL</font></b> |
switches | 0:5c4d7b2438d3 | 88 | </td> |
switches | 0:5c4d7b2438d3 | 89 | <td> |
switches | 0:5c4d7b2438d3 | 90 | <font color="#ff0000"> |
switches | 0:5c4d7b2438d3 | 91 | <xsl:value-of select="@message" /> |
switches | 0:5c4d7b2438d3 | 92 | </font> |
switches | 0:5c4d7b2438d3 | 93 | </td> |
switches | 0:5c4d7b2438d3 | 94 | <td> |
switches | 0:5c4d7b2438d3 | 95 | <font color="#ff0000"> |
switches | 0:5c4d7b2438d3 | 96 | <xsl:value-of select="@type" /> |
switches | 0:5c4d7b2438d3 | 97 | </font> |
switches | 0:5c4d7b2438d3 | 98 | </td> |
switches | 0:5c4d7b2438d3 | 99 | </xsl:template> |
switches | 0:5c4d7b2438d3 | 100 | |
switches | 0:5c4d7b2438d3 | 101 | </xsl:stylesheet> |