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

cppunit xsd is not correct

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved (View Workflow)
    • Minor
    • Resolution: Fixed
    • xunit-plugin
    • None
    • linux SuSE 10.2

    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

          gbois Gregory Boissinot added a comment - - edited

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

          gbois Gregory Boissinot added a comment - - edited Thank you. This new XSD will be integrated in the next version.

          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

          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

          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

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

          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

          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?

          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?
          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.

          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

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

            Dates

              Created:
              Updated:
              Resolved: