Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Component/s: xunit-plugin
    • Labels:
      None
    • Environment:
      linux SuSE 10.2
    • Similar Issues:

      Description

      The xsd from xunit to validate cppunit XML output is not correct

      cppunit can write a FailedTest tag without Location element if an unexpected exception make the test fail.

      I have attached the correct xsd.

        Attachments

          Activity

          Hide
          gbois Gregory Boissinot added a comment - - edited

          Thank you.
          This new XSD will be integrated in the next version.

          Show
          gbois Gregory Boissinot added a comment - - edited Thank you. This new XSD will be integrated in the next version.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in hudson
          User: : gbois
          Path:
          trunk/hudson/dtkit/dtkit-default/dtkit-default-junit/src/main/resources/com/thalesgroup/dtkit/junit/cppunit-1.0.xsd
          http://jenkins-ci.org/commit/33192
          Log:
          Fixed JENKINS-7012

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in hudson User: : gbois Path: trunk/hudson/dtkit/dtkit-default/dtkit-default-junit/src/main/resources/com/thalesgroup/dtkit/junit/cppunit-1.0.xsd http://jenkins-ci.org/commit/33192 Log: Fixed JENKINS-7012
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in hudson
          User: : gbois
          Path:
          trunk/hudson/plugins/cppunit/src/main/resources/hudson/plugins/cppunit/cppunit-1.0.xsd
          http://jenkins-ci.org/commit/33733
          Log:
          Fixed JENKINS-7012 for the cppunit component

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in hudson User: : gbois Path: trunk/hudson/plugins/cppunit/src/main/resources/hudson/plugins/cppunit/cppunit-1.0.xsd http://jenkins-ci.org/commit/33733 Log: Fixed JENKINS-7012 for the cppunit component
          Hide
          torbent torbent added a comment - - edited

          Has this been released? I'm running xUnit 1.7 and seeing this problem. However, there's no notice in the changelog of the plugin of this being fixed, nor is it visible in Fisheye for 1.8

          Show
          torbent torbent added a comment - - edited Has this been released? I'm running xUnit 1.7 and seeing this problem. However, there's no notice in the changelog of the plugin of this being fixed, nor is it visible in Fisheye for 1.8
          Hide
          gbois Gregory Boissinot added a comment -

          The issue was fixed in the DTKIT component (xUnit uses DTKIT for validation and transformation processes) : http://wiki.jenkins-ci.org/display/JENKINS/DTKIT
          xUnit 1.7 should include the modification.
          Do you use xUnit with cppunit plugin?
          Could you test with xUnit 1.8?

          Show
          gbois Gregory Boissinot added a comment - The issue was fixed in the DTKIT component (xUnit uses DTKIT for validation and transformation processes) : http://wiki.jenkins-ci.org/display/JENKINS/DTKIT xUnit 1.7 should include the modification. Do you use xUnit with cppunit plugin? Could you test with xUnit 1.8?
          Hide
          torbent torbent added a comment - - edited

          I'll find a way to check with 1.8, perhaps later today.
          Here's what I got from 1.7:

          [xUnit] [WARNING] - The file 'test.xml' is an invalid file.
          [xUnit] [WARNING] - At line 7 of file:/test.xml:cvc-complex-type.2.4.a: Invalid content was found starting with element 'Message'. One of '{Location}' is expected.
          [xUnit] [WARNING] - The file 'test.xml' has been ignored.
          [xUnit] [INFO] - Stopping recording.

          From this input (just the relevant bits):

          <FailedTest id="5">
          <Name>testname</Name>
          <FailureType>Error</FailureType>
          <Message>uncaught exception of type Exception
          </Message>
          </FailedTest>

          I have both xUnit and CppUnit plugins installed, but this particular job is using the native xUnit implementation (as far as I can tell - the cppunit version was given as 1.12.7 or such). I've never had this problem with the CppUnit plugin.

          Show
          torbent torbent added a comment - - edited I'll find a way to check with 1.8, perhaps later today. Here's what I got from 1.7: [xUnit] [WARNING] - The file 'test.xml' is an invalid file. [xUnit] [WARNING] - At line 7 of file:/test.xml:cvc-complex-type.2.4.a: Invalid content was found starting with element 'Message'. One of '{Location}' is expected. [xUnit] [WARNING] - The file 'test.xml' has been ignored. [xUnit] [INFO] - Stopping recording. From this input (just the relevant bits): <FailedTest id="5"> <Name>testname</Name> <FailureType>Error</FailureType> <Message>uncaught exception of type Exception </Message> </FailedTest> I have both xUnit and CppUnit plugins installed, but this particular job is using the native xUnit implementation (as far as I can tell - the cppunit version was given as 1.12.7 or such). I've never had this problem with the CppUnit plugin.

            People

            • Assignee:
              gbois Gregory Boissinot
              Reporter:
              qinqon qinqon
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: