Skip to content

Instantly share code, notes, and snippets.

@MikeBild
MikeBild / mSpec2JUnit.xslt
Created June 18, 2011 18:22
MSpec to JUnit XSLT
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" indent="yes"/>
<xsl:variable name="specs" select="//specification"/>
<xsl:template match="MSpec">
<testsuite
name="Specifications"
tests="{count($specs)}"
errors="0"