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

          [JENKINS-27494] Support for PHPUnit 4.* reports

          We are experiencing the same problem.

          Samuel Vandamme added a comment - We are experiencing the same problem.

          Nikolas Falco added a comment -

          Please attach the report file

          Nikolas Falco added a comment - Please attach the report file

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

          Vladimir Kuznichenkov added a comment - nfalco  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.

          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

           

          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  

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

              Created:
              Updated:
              Resolved: