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

Tests listed in incorrect namespace

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Unit test results are occasionally put under different namespaces, depending on the type of the tests.

      The issue is in the transform file nunit-to-junit.xsl.

      Specifically, the cause is due to the firstTestName variable. The original is:

      <xsl:variable name="firstTestName" select="results//test-case[1]//@name" />
      

      The "fixed" version is:

      <xsl:variable name="firstTestName" select="results/test-case[1]/@name" />
      

      This fixes my current issue, but I don't know if it introduces any new (or old) issues.

      I have attached an example nunit results file that will generate the error (one of the 3 Inflector.OrdinalizeTests testsuites has the name Inflector rather than Inflector.OrdinalizeTests)

        Attachments

          Issue Links

            Activity

            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Alex Earl
            Path:
            src/main/resources/hudson/plugins/nunit/nunit-to-junit.xsl
            http://jenkins-ci.org/commit/nunit-plugin/af6526bbd89fe505b9c3b0e3e8e060f63fc9ef3e
            Log:
            Fix JENKINS-13471

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Alex Earl Path: src/main/resources/hudson/plugins/nunit/nunit-to-junit.xsl http://jenkins-ci.org/commit/nunit-plugin/af6526bbd89fe505b9c3b0e3e8e060f63fc9ef3e Log: Fix JENKINS-13471
            Hide
            slide_o_mix Alex Earl added a comment -

            Fixed in 0.22 - soon to be released.

            Show
            slide_o_mix Alex Earl added a comment - Fixed in 0.22 - soon to be released.

              People

              • Assignee:
                slide_o_mix Alex Earl
                Reporter:
                mightymuke Marcus Bristol
              • Votes:
                2 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: