|
Posted by Adam Harvey on 10/06/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]
|