Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-5333

JsUnit plugin does not work with JsUnit 2.2 final

XMLWordPrintable

    • Icon: Patch Patch
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • jsunit-plugin
    • None
    • JsUnit 2.2 final

      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:

      1. Works with output from JsUnit 2.2 final.
      2. Errors are counted and processed properly. Errors were ignored and translated to successes in the previous version.
      3. The template for extracting the classname was replaced with a more efficient algorithm.
      4. 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
      • JsUnit.Firefox
      • JsUnit.Chrome
      • JsUnit.Safari

      This is necessary when you execute your tests in multiple browsers with haltonerror="false" to report all possible test failures.

            ricktw Rick Oosterholt
            mrobinet mrobinet
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: