Hi all. I've started poking/hacking around in the Zend source trying
to implement code coverage statistics for php files. The end goal is
to build php with a coverage option, place it on a test server, run
test suites, then see which lines of code in which files were hit
(more importantly which ones weren't). Very similar to gcov for those
familar with gcc. Am I re-inventing the wheel? Does this already
exist?
Thanks,
Mike
Hi all. I've started poking/hacking around in the Zend source trying
to implement code coverage statistics for php files. The end goal is
to build php with a coverage option, place it on a test server, run
test suites, then see which lines of code in which files were hit
(more importantly which ones weren't). Very similar to gcov for those
familar with gcc. Am I re-inventing the wheel? Does this already
exist?
I believe xDebug supports this, and there's a worked example in my book.
George
George Schlossnagle wrote:
I believe xDebug supports this
It does. When using PHPUnit2 with XDebug you get information about
which lines of code are covered by which unit test, etc.
--
Sebastian Bergmann
http://sebastian-bergmann.de/ http://phpOpenTracker.de/
Das Buch zu PHP 5: http://professionelle-softwareentwicklung-mit-php5.de/
These tools are exactly what I'm looking for.
Thanks guys!
Mike
On Wed, 30 Jun 2004 06:07:51 +0200, Sebastian Bergmann
sb@sebastian-bergmann.de wrote:
George Schlossnagle wrote:
I believe xDebug supports this
It does. When using PHPUnit2 with XDebug you get information about
which lines of code are covered by which unit test, etc.--
Sebastian Bergmann
http://sebastian-bergmann.de/ http://phpOpenTracker.de/Das Buch zu PHP 5: http://professionelle-softwareentwicklung-mit-php5.de/