sebastianbergmann / phpcov

TextUI frontend for php-code-coverage
BSD 3-Clause "New" or "Revised" License
223 stars 58 forks source link

Cobertura can't parse xml report generated by phpcov #90

Closed zhaoxd07 closed 5 years ago

zhaoxd07 commented 5 years ago

When integrating xml reports into cobertura got the following error: """ ERROR: Build step failed with exception java.lang.NullPointerException at hudson.plugins.cobertura.CoberturaXmlHandler.startElement(CoberturaCoverageParser.java:171) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:509) .... """

I found that phpcov generate xml report with attribute "file name" while cobertura parse xml use "filename" and some other differences.

My version:phpcov 4.0.5;PHPUnit 6.5.0;cobertura 1.13 I want to know if it is caused by a version mismatch and How can I get a matching version? Thank you.

jenkins cobertura cobertura coverage.xml