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

Tests listed in incorrect namespace

XMLWordPrintable

    • 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)

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

              Created:
              Updated:
              Resolved: