The current version does not appear to work with the final version of JsUnit 2.2 released at the end of November. The current XSL looks for testCase elements, but 2.2 produces a testCaseResults element with testCaseResult child elements.
The attached patch contains the following changes to the jsunit-to-junit.xsl:
- Works with output from JsUnit 2.2 final.
- Errors are counted and processed properly. Errors were ignored and translated to successes in the previous version.
- The template for extracting the classname was replaced with a more efficient algorithm.
- Support was added for recording results for each browser. Previously executing the tests in a second browser would overwrite the results of produced by running them in the first browser.
This produces test result output where each browser is a test class:
- JsUnit.Internet Explorer
This is necessary when you execute your tests in multiple browsers with haltonerror="false" to report all possible test failures.