-
Bug
-
Resolution: Not A Defect
-
Major
-
None
-
Jenkins 2.127
xUnit plugin 2.0.2
Job log show lots of error lines starting like:
INFO: [JUnit] - 2 test report file(s) were found with the pattern 'phpunit-result.xml, selenium.xml' relative to '/var/lib/jenkins/workspace/bob-develop' for the testing framework 'JUnit'. WARNING: The file '/var/lib/jenkins/workspace/bob-develop/phpunit-result.xml' is an invalid file. WARNING: At line 3 of file:/var/lib/jenkins/workspace/bob-develop/phpunit-result.xml:cvc-complex-type.3.2.2: Attribute 'assertions' is not allowed to appear in element 'testsuite'.
I can supply a full XML file if needed.
- is related to
-
JENKINS-52392 Support custom junit format that does not respect any precise schema
-
- Resolved
-
Assertions is not a valid attribute for the testsuite element of supported JUnit report.
The managed scenarios are errors, failure and skipped What assertions means?
If you would support the custom junit format for phpunit test please select the "Custom Tool" as test type and provide an XSL to conver the generated report to a correct format of the supported JUnit format. In the "custom stylesheet" value you could insert the path of your XSL file that could be absolute on the server (master) or relative to the workspace.