Marcus Bristol created JENKINS-13471:
----------------------------------------

             Summary: Tests listed in incorrect namespace
                 Key: JENKINS-13471
                 URL: https://issues.jenkins-ci.org/browse/JENKINS-13471
             Project: Jenkins
          Issue Type: Bug
          Components: nunit
    Affects Versions: current
            Reporter: Marcus Bristol
            Assignee: redsolo
         Attachments: nunit-results.xml

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:
{code:xml}
<xsl:variable name="firstTestName" select="results//test-case[1]//@name" />
{code}
The "fixed" version is:
{code:xml}
<xsl:variable name="firstTestName" select="results/test-case[1]/@name" />
{code}

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



--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.jenkins-ci.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to