Clover PHP Plugin

Skip to end of metadata
Go to start of metadata

Plugin Information

Plugin ID cloverphp Changes In Latest Release
Since Latest Release
Latest Release
Latest Release Date
Required Core
Dependencies
0.3.3 (archives)
Mar 21, 2013
1.480
Source Code
Issue Tracking
Maintainer(s)
GitHub
Open Issues
Seiji Sogabe (id: ssogabe)
Usage Installations 2014-Mar 3574
2014-Apr 3664
2014-May 3651
2014-Jun 3688
2014-Jul 3843
2014-Aug 3818
2014-Sep 4061
2014-Oct 4079
2014-Nov 4004
2014-Dec 3995
2015-Jan 4170
2015-Feb 4196

This plugin allows you to capture code coverage reports from PHPUnit. For more information on how to set up PHP projects with Jenkins have a look at the Template for Jenkins Jobs for PHP Projects.

PHPUnit

You have to use "--coverage-clover" option to generate clover style coverage report.
The following setting is for Phing.

build.xml
<exec dir="."
      command="phpunit --log-junit 'reports/unitreport.xml'
                       --coverage-html 'reports/coverage'
                       --coverage-clover 'reports/coverage/coverage.xml'
                       test/"
/>

Or use phpunit task with clover style formatter.

build.xml with phpunit task
<phpunit codecoverage="true" haltonfailure="true" haltonerror="true">
  <formatter type="clover" usefile="false"/>
  <batchtest>
    <fileset dir="tests">
      <include name="**/*Test*.php"/>
    </fileset>
  </batchtest>
</phpunit>

Project configuration

  • the location of clover xml(required).
  • the location of clover html report (optional).

Project screen

TODO

Changelog

0.3.3 (21 Mar, 2013)

  • added message if clover xml is incompatible with clover style (issue #17037).
  • Conflict with standard clover plugin (issue #15626).

0.3.2 (21 Oct, 2011)

  • NPE when Clover HTML report directory is not defined (issue #11408).
  • Fixed breadcrumb.
  • Fixed IE6 rendering.

0.3.1 (27 July, 2011)

  • roll back the dependency to Jenkins 1.409 for 1.409.x LTS releases.(Comment).
  • Report page rendering performance boost (pull request).

0.3 (3 Jun, 2011)

  • Support FreeStyle and Matrix projects only.
  • NPE in Clover PHP Plugin when XML config is empty (issue #9821).
  • save clover.xml and html report in builds/XX/cloverphp directory.

0.2 (28 May, 2011)

  • Fixed a path when built on slave.
  • Added breadcrumb.
  • Added test classes.
  • fixed configuration page.

0.1 (16 May, 2011)

  • First release

Labels

Edit
plugin-report plugin-report Delete
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.

Add Comment