Details

    • Similar Issues:

      Description

      As currently reported in the issue tracker of Codeception, it seems like test results published by PHPUnit 4.* are making xUnit fail the build, complaining it's not in a readable format.

      The error I get is the following:

      > Attribute 'feature' is not allowed to appear in element 'testcase'.

      The current XML that gives me these errors is the following:
      https://bpaste.net/show/2fd99120add6

        Attachments

        1. report.xml
          7 kB
          Vladimir Kuznichenkov

          Activity

          Hide
          samuelv Samuel Vandamme added a comment -

          We are experiencing the same problem.

          Show
          samuelv Samuel Vandamme added a comment - We are experiencing the same problem.
          Hide
          nfalco Nikolas Falco added a comment -

          Please attach the report file

          Show
          nfalco Nikolas Falco added a comment - Please attach the report file
          Hide
          kuzaxak Vladimir Kuznichenkov added a comment -

          Nikolas Falco I attach an example of a report. Please check it. 

          INFO: [PHPUnit-3.x (default)] - 1 test report file(s) were found with the pattern 'tests/_output/report.xml' relative to '/home/jenkins/workspace/ches_devel' for the testing framework 'PHPUnit-3.x (default)'.
          WARNING: The file '/home/jenkins/workspace/ches_devel/tests/_output/report.xml' is an invalid file.
          WARNING: At line 4 of file:/home/jenkins/workspace/ches_devel/tests/_output/report.xml:cvc-complex-type.3.2.2: Attribute 'feature' is not allowed to appear in element 'testcase'.
          WARNING: At line 5 of file:/home/jenkins/workspace/ches_devel/tests/_output/report.xml:cvc-complex-type.3.2.2: Attribute 'feature' is not allowed to appear in element 'testcase'.
          WARNING: At line 6 of file:/home/jenkins/workspace/ches_devel/tests/_output/report.xml:cvc-complex-type.3.2.2: Attribute 'feature' is not allowed to appear in element 'testcase'.
          WARNING: At line 7 of file:/home/jenkins/workspace/ches_devel/tests/_output/report.xml:cvc-complex-type.3.2.2: Attribute 'feature' is not allowed to appear in element 'testcase'.
          WARNING: At line 8 of file:/home/jenkins/workspace/ches_devel/tests/_output/report.xml:cvc-complex-type.3.2.2: Attribute 'feature' is not allowed to appear in element 'testcase'.
          WARNING: At line 9 of file:/home/jenkins/workspace/ches_devel/tests/_output/report.xml:cvc-complex-type.3.2.2: Attribute 'feature' is not allowed to appear in element 'testcase'.
          WARNING: At line 10 of file:/home/jenkins/workspace/ches_devel/tests/_output/report.xml:cvc-complex-type.3.2.2: Attribute 'feature' is not allowed to appear in element 'testcase'.
          WARNING: At line 11 of file:/home/jenkins/workspace/ches_devel/tests/_output/report.xml:cvc-complex-type.3.2.2: Attribute 'feature' is not allowed to appear in element 'testcase'.
          WARNING: At line 12 of file:/home/jenkins/workspace/ches_devel/tests/_output/report.xml:cvc-complex-type.3.2.2: Attribute 'feature' is not allowed to appear in element 'testcase'.
          WARNING: At line 13 of file:/home/jenkins/workspace/ches_devel/tests/_output/report.xml:cvc-complex-type.3.2.2: Attribute 'feature' is not allowed to appear in element 'testcase'.
          WARNING: At line 14 of file:/home/jenkins/workspace/ches_devel/tests/_output/report.xml:cvc-complex-type.3.2.2: Attribute 'feature' is not allowed to appear in element 'testcase'.
          WARNING: At line 15 of file:/home/jenkins/workspace/ches_devel/tests/_output/report.xml:cvc-complex-type.3.2.2: Attribute 'feature' is not allowed to appear in element 'testcase'.
          WARNING: At line 16 of file:/home/jenkins/workspace/ches_devel/tests/_output/report.xml:cvc-complex-type.3.2.2: Attribute 'feature' is not allowed to appear in element 'testcase'.
          WARNING: At line 17 of file:/home/jenkins/workspace/ches_devel/tests/_output/report.xml:cvc-complex-type.3.2.2: Attribute 'feature' is not allowed to appear in element 'testcase'.
          WARNING: At line 18 of file:/home/jenkins/workspace/ches_devel/tests/_output/report.xml:cvc-complex-type.3.2.2: Attribute 'feature' is not allowed to appear in element 'testcase'.
          WARNING: At line 19 of file:/home/jenkins/workspace/ches_devel/tests/_output/report.xml:cvc-complex-type.3.2.2: Attribute 'feature' is not allowed to appear in element 'testcase'.
          WARNING: At line 20 of file:/home/jenkins/workspace/ches_devel/tests/_output/report.xml:cvc-complex-type.3.2.2: Attribute 'feature' is not allowed to appear in element 'testcase'.
          WARNING: At line 21 of file:/home/jenkins/workspace/ches_devel/tests/_output/report.xml:cvc-complex-type.3.2.2: Attribute 'feature' is not allowed to appear in element 'testcase'.
          WARNING: At line 22 of file:/home/jenkins/workspace/ches_devel/tests/_output/report.xml:cvc-complex-type.3.2.2: Attribute 'feature' is not allowed to appear in element 'testcase'.
          WARNING: At line 23 of file:/home/jenkins/workspace/ches_devel/tests/_output/report.xml:cvc-complex-type.3.2.2: Attribute 'feature' is not allowed to appear in element 'testcase'.
          WARNING: At line 24 of file:/home/jenkins/workspace/ches_devel/tests/_output/report.xml:cvc-complex-type.3.2.2: Attribute 'feature' is not allowed to appear in element 'testcase'.
          WARNING: At line 25 of file:/home/jenkins/workspace/ches_devel/tests/_output/report.xml:cvc-complex-type.3.2.2: Attribute 'feature' is not allowed to appear in element 'testcase'.
          WARNING: The result file '/home/jenkins/workspace/ches_devel/tests/_output/report.xml' for the metric 'PHPUnit' is not valid. The result file has been skipped.
          Show
          kuzaxak Vladimir Kuznichenkov added a comment - Nikolas Falco  I attach an example of a report. Please check it.  INFO: [PHPUnit-3.x (default)] - 1 test report file(s) were found with the pattern 'tests/_output/report.xml' relative to '/home/jenkins/workspace/ches_devel' for the testing framework 'PHPUnit-3.x (default)'. WARNING: The file '/home/jenkins/workspace/ches_devel/tests/_output/report.xml' is an invalid file. WARNING: At line 4 of file:/home/jenkins/workspace/ches_devel/tests/_output/report.xml:cvc-complex-type.3.2.2: Attribute 'feature' is not allowed to appear in element 'testcase'. WARNING: At line 5 of file:/home/jenkins/workspace/ches_devel/tests/_output/report.xml:cvc-complex-type.3.2.2: Attribute 'feature' is not allowed to appear in element 'testcase'. WARNING: At line 6 of file:/home/jenkins/workspace/ches_devel/tests/_output/report.xml:cvc-complex-type.3.2.2: Attribute 'feature' is not allowed to appear in element 'testcase'. WARNING: At line 7 of file:/home/jenkins/workspace/ches_devel/tests/_output/report.xml:cvc-complex-type.3.2.2: Attribute 'feature' is not allowed to appear in element 'testcase'. WARNING: At line 8 of file:/home/jenkins/workspace/ches_devel/tests/_output/report.xml:cvc-complex-type.3.2.2: Attribute 'feature' is not allowed to appear in element 'testcase'. WARNING: At line 9 of file:/home/jenkins/workspace/ches_devel/tests/_output/report.xml:cvc-complex-type.3.2.2: Attribute 'feature' is not allowed to appear in element 'testcase'. WARNING: At line 10 of file:/home/jenkins/workspace/ches_devel/tests/_output/report.xml:cvc-complex-type.3.2.2: Attribute 'feature' is not allowed to appear in element 'testcase'. WARNING: At line 11 of file:/home/jenkins/workspace/ches_devel/tests/_output/report.xml:cvc-complex-type.3.2.2: Attribute 'feature' is not allowed to appear in element 'testcase'. WARNING: At line 12 of file:/home/jenkins/workspace/ches_devel/tests/_output/report.xml:cvc-complex-type.3.2.2: Attribute 'feature' is not allowed to appear in element 'testcase'. WARNING: At line 13 of file:/home/jenkins/workspace/ches_devel/tests/_output/report.xml:cvc-complex-type.3.2.2: Attribute 'feature' is not allowed to appear in element 'testcase'. WARNING: At line 14 of file:/home/jenkins/workspace/ches_devel/tests/_output/report.xml:cvc-complex-type.3.2.2: Attribute 'feature' is not allowed to appear in element 'testcase'. WARNING: At line 15 of file:/home/jenkins/workspace/ches_devel/tests/_output/report.xml:cvc-complex-type.3.2.2: Attribute 'feature' is not allowed to appear in element 'testcase'. WARNING: At line 16 of file:/home/jenkins/workspace/ches_devel/tests/_output/report.xml:cvc-complex-type.3.2.2: Attribute 'feature' is not allowed to appear in element 'testcase'. WARNING: At line 17 of file:/home/jenkins/workspace/ches_devel/tests/_output/report.xml:cvc-complex-type.3.2.2: Attribute 'feature' is not allowed to appear in element 'testcase'. WARNING: At line 18 of file:/home/jenkins/workspace/ches_devel/tests/_output/report.xml:cvc-complex-type.3.2.2: Attribute 'feature' is not allowed to appear in element 'testcase'. WARNING: At line 19 of file:/home/jenkins/workspace/ches_devel/tests/_output/report.xml:cvc-complex-type.3.2.2: Attribute 'feature' is not allowed to appear in element 'testcase'. WARNING: At line 20 of file:/home/jenkins/workspace/ches_devel/tests/_output/report.xml:cvc-complex-type.3.2.2: Attribute 'feature' is not allowed to appear in element 'testcase'. WARNING: At line 21 of file:/home/jenkins/workspace/ches_devel/tests/_output/report.xml:cvc-complex-type.3.2.2: Attribute 'feature' is not allowed to appear in element 'testcase'. WARNING: At line 22 of file:/home/jenkins/workspace/ches_devel/tests/_output/report.xml:cvc-complex-type.3.2.2: Attribute 'feature' is not allowed to appear in element 'testcase'. WARNING: At line 23 of file:/home/jenkins/workspace/ches_devel/tests/_output/report.xml:cvc-complex-type.3.2.2: Attribute 'feature' is not allowed to appear in element 'testcase'. WARNING: At line 24 of file:/home/jenkins/workspace/ches_devel/tests/_output/report.xml:cvc-complex-type.3.2.2: Attribute 'feature' is not allowed to appear in element 'testcase'. WARNING: At line 25 of file:/home/jenkins/workspace/ches_devel/tests/_output/report.xml:cvc-complex-type.3.2.2: Attribute 'feature' is not allowed to appear in element 'testcase'. WARNING: The result file '/home/jenkins/workspace/ches_devel/tests/_output/report.xml' for the metric 'PHPUnit' is not valid. The result file has been skipped.
          Hide
          nochums Nochum Sossonko added a comment -

          I believe this broke compatibility with older versions of PHP Unit and Codeception. I had to rollback to 2.3.3 for it to work again

           

          Show
          nochums Nochum Sossonko added a comment - I believe this broke compatibility with older versions of PHP Unit and Codeception. I had to rollback to 2.3.3 for it to work again  

            People

            • Assignee:
              nfalco Nikolas Falco
              Reporter:
              peach Matteo Pescarin
            • Votes:
              5 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: