|Code Coverage tools for PHP||#1|
Is there any code coverage tool available for PHP?
I wish to check the code coverage of my code and API's written in PHP, but have not been able to lay my hands on any code coverage tool for PHP, as it is more of a server side language and dynamic in nature.
Does anyone know of a method by which code coverage for PHP can be executed?
posted date: 2008-12-07 23:30:00
|Re: Code Coverage tools for PHP||#3|
Using Xdebug in combination with PHPUnit can give you code coverage analysis.
posted date: 2008-12-07 23:34:00
|Re: Code Coverage tools for PHP||#4|
Spike PHPCoverage. Both SimpleTest and PHPUnit can easily be integrated with it, although PHPUnits support is there out-of-the-box.
posted date: 2008-12-08 12:42:00
|Re: Code Coverage tools for PHP||#5|
See our PHP Test Coverage tool from Semantic Designs:http://www.semanticdesigns.com/Products/TestCoverage/PHPTestCoverage.htmlVery low overhead, handles huge systems of files, intuitive GUI showing coverage on specific files, and generated report with coverage breakdown at method, class and package levels.Best of all, no requirement to install anything in the system beingtested. No need for xdebug, etc., which means you don't have to arguewith the sysadmin to do your testing.You can use it with PHPUnit to get unit-test driven coverage. Or you can use it on your website to collect coverage from any functional testing approach/tools you may have.
posted date: 2009-06-13 19:57:00
|Re: Code Coverage tools for PHP||#6|
Isn't spike simply a wrapper around xDebug?
posted date: 2010-02-14 21:17:00
|Re: Code Coverage tools for PHP||#7|
yes, it uses xdebug.
posted date: 2010-02-15 00:18:00
|Re: Code Coverage tools for PHP||#8|
Xdebug can do code coverage reporting, and Phing, a build utility, can automate running coverage reports (http://devzone.zend.com/article/2955).
posted date: 2010-03-31 13:34:00
|Re: Code Coverage tools for PHP||#9|
Phing. is. love.
posted date: 2010-07-15 00:35:00
|Re: Code Coverage tools for PHP||#10|
Zend Studio ships with code coverage tools out the box.
posted date: 2011-05-21 02:49:00
|Re: Code Coverage tools for PHP||#11|
Downvoter (flagger): Your specific objection to this answer?
posted date: 2011-07-12 13:27:00
|Re: Code Coverage tools for PHP||#12|
+1 to counter-balance the -1, seeing that this is NOT spam, since it is clearly stated as promotional, and actually gives a relevant answer.
posted date: 2011-08-11 06:11:00
|select page: « 1 2 »|