You are here: Re: Code coverage tools for PHP applications? « PHP Programming Language « IT news, forums, messages
Re: Code coverage tools for PHP applications?

Posted by Adam Harvey on 11/18/89 11:42

On Wed, 15 Mar 2006 14:20:38 -0800, patrickmee wrote:
> My idea would be to have them run through their plans on an application
> and measure the percentage of the code covered. Then we will know where
> we are.
>
> This is a QA project, not a development task. I'm not going to be able
> to have the developers put unit tests into their code. That's a
> different battle.

Have a look at Xdebug[1] and see if it's appropriate for
your needs. It does have code coverage functions (which I use, but in
conjunction with unit tests), although you'll need to wrap the code in
xdebug_start_code_coverage() and xdebug_stop_code_coverage() calls, then
do something with xdebug_get_code_coverage() after stopping the code
coverage system.

If you're using Apache to serve PHP web apps, you may be able to do
something with .htaccess files or the server configuration and
use auto_prepend_file and auto_append_file to capture the required data,
then save it somewhere and analyse it later.

Adam

[1] http://xdebug.org/

--
Adam Harvey

To e-mail: don't make an example out of me!

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация