• Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • nunit-plugin
    • None

      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)

          [JENKINS-13471] Tests listed in incorrect namespace

          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

          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

          Alex Earl added a comment -

          Fixed in 0.22 - soon to be released.

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

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

              Created:
              Updated:
              Resolved: