|
|
_0.png) |
|
|
|
|
Issue Type:
|
Bug
|
|
Assignee:
|
sogabe
|
|
Components:
|
cloverphp-plugin |
|
Created:
|
26/Jul/12 6:55 PM
|
|
Description:
|
I'm attempting to run Clover reports from my PHPUnit test logs, and I keep getting this error. I noticed a similar error had already been fixed (the one relating to empty HTML directory settings), but I think this one is different, judging from the stack trace.
I have a coverage XML file and a valid directory for HTML output. The same error occurs whether or not HTML reports are enabled or not.
Publishing Clover coverage report...
Publishing Clover XML report...
Publishing Clover coverage results...
ERROR: Publisher org.jenkinsci.plugins.cloverphp.CloverPublisher aborted due to exception
java.lang.NullPointerException
at org.jenkinsci.plugins.cloverphp.CloverCoverageParser.trimPaths(CloverCoverageParser.java:29)
at org.jenkinsci.plugins.cloverphp.CloverCoverageParser.parse(CloverCoverageParser.java:50)
at org.jenkinsci.plugins.cloverphp.CloverPublisher.processCloverXml(CloverPublisher.java:216)
at org.jenkinsci.plugins.cloverphp.CloverPublisher.perform(CloverPublisher.java:189)
at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:717)
at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:692)
at hudson.model.Build$BuildExecution.post2(Build.java:183)
at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:639)
at hudson.model.Run.execute(Run.java:1513)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:236)
Finished: FAILURE
|
|
Environment:
|
Ubuntu 12.04
Jenkins 1.475
Clover PHP 0.3.2
|
|
Fix Versions:
|
current |
|
Project:
|
Jenkins
|
|
Labels:
|
plugin
exception
|
|
Priority:
|
Major
|
|
Reporter:
|
Geoff Adams
|
|
|
|
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
|
|
Discovered the reason for this was due to the format of the report being wrong. In the example Phing configuration on the plugin page (https://wiki.jenkins-ci.org/display/JENKINS/Clover+PHP+Plugin) the code should read:
<phpunit printsummary="true" codecoverage="true">
<formatter todir="reports" type="clover" outfile="coverage/coverage.xml" />
<batchtest>
<fileset dir="test">
<include name="**/*Test.php" />
</fileset>
</batchtest>
</phpunit>
Notice the formatter type is changed from 'xml' to 'clover'. Hope this helps!