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

xUnit does not work for PHPUnit anymore

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Just updated to the latest xUnit version and PHPUnit's XML logfile is no longer processed correctly:

      [xUnit] Starting to record.
      [xUnit] [PHPUnit-5.1.6 (default)] - Processing 1 files with the pattern 'build/logs/junit.xml' relative to '/usr/local/hudson/jobs/php-object-freezer/workspace'.
      [xUnit] [WARNING] - The file '/usr/local/hudson/jobs/php-object-freezer/workspace/build/logs/junit.xml' is an invalid file. It has been ignored.
      [xUnit] The plugin hasn't been performed correctly: java.io.IOException: No test report files were found. Configuration error?
      .
      .
      .
      Finished: FAILURE

        Attachments

          Activity

          Hide
          martin_mayer martin_mayer added a comment -

          As soon as the plugin manager offers me 1.5, I will.

          You can force update - go to Manage Hudson / Plugin Manager / Advanced tab, click Check now.

          Show
          martin_mayer martin_mayer added a comment - As soon as the plugin manager offers me 1.5, I will. You can force update - go to Manage Hudson / Plugin Manager / Advanced tab, click Check now .
          Hide
          sebastian_bergmann sebastian_bergmann added a comment -

          Updated to 1.5 now (thanks for the hint about forcing). Looks much better now:

          [xUnit] Starting to record.
          [xUnit] Can't create the path /usr/local/hudson/jobs/php-object-freezer/workspace/generatedJUnitFiles. Maybe the directory already exists.
          [xUnit] [PHPUnit-3.4 (default)] - Processing 1 files with the pattern 'build/logs/junit.xml' relative to '/usr/local/hudson/jobs/php-object-freezer/workspace'.
          [xUnit] [INFO] - Converting '/usr/local/hudson/jobs/php-object-freezer/workspace/build/logs/junit.xml' .
          [xUnit] Stopping recording.
          .
          .
          .
          Finished: SUCCESS

          Thanks!

          Show
          sebastian_bergmann sebastian_bergmann added a comment - Updated to 1.5 now (thanks for the hint about forcing). Looks much better now: [xUnit] Starting to record. [xUnit] Can't create the path /usr/local/hudson/jobs/php-object-freezer/workspace/generatedJUnitFiles. Maybe the directory already exists. [xUnit] [PHPUnit-3.4 (default)] - Processing 1 files with the pattern 'build/logs/junit.xml' relative to '/usr/local/hudson/jobs/php-object-freezer/workspace'. [xUnit] [INFO] - Converting '/usr/local/hudson/jobs/php-object-freezer/workspace/build/logs/junit.xml' . [xUnit] Stopping recording. . . . Finished: SUCCESS Thanks!
          Hide
          sebastian_bergmann sebastian_bergmann added a comment -

          For another project I now get:

          [xUnit] [WARNING] At line 4 of file:/usr/local/hudson/jobs/php-code-browser/workspace/build/logs/junit.xml:cvc-complex-type.3.2.2: Attribute 'category' is not allowed to appear in element 'testsuite'.

          The list of optional attributes for the file element is: category, namespace, fullPackage, package, subpackage

          Show
          sebastian_bergmann sebastian_bergmann added a comment - For another project I now get: [xUnit] [WARNING] At line 4 of file:/usr/local/hudson/jobs/php-code-browser/workspace/build/logs/junit.xml:cvc-complex-type.3.2.2: Attribute 'category' is not allowed to appear in element 'testsuite'. The list of optional attributes for the file element is: category, namespace, fullPackage, package, subpackage
          Hide
          gbois Gregory Boissinot added a comment -

          Should be fixed with xUnit 1.6

          Show
          gbois Gregory Boissinot added a comment - Should be fixed with xUnit 1.6
          Hide
          wcomnisky William Comnisky added a comment - - edited

          My problem is not with Jenkins. Sorry.

          Show
          wcomnisky William Comnisky added a comment - - edited My problem is not with Jenkins. Sorry.

            People

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

              Dates

              • Created:
                Updated:
                Resolved: