473,666 Members | 2,053 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Code coverage tools for PHP applications?

Hi all,

The database that our php applications are running on is getting a
major clean up. RI will be enforced, normalization and all that good
stuff.

Our QA department have a set of regression plans but I don't know how
complete they are. Neither do they :(

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.

We use PHP version 4.x.

Anything I have seen appears to be developer focused. I don't mind
doing a "compile" to instument the code, if that is required. Sorry I'm
from a c++ background.

Thanks for any responses,

Paddy

Mar 15 '06 #1
7 3047
pa********@gmai l.com wrote:
Hi all,

The database that our php applications are running on is getting a
major clean up. RI will be enforced, normalization and all that good
stuff.

Our QA department have a set of regression plans but I don't know how
complete they are. Neither do they :(

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.

We use PHP version 4.x.

Anything I have seen appears to be developer focused. I don't mind
doing a "compile" to instument the code, if that is required. Sorry I'm
from a c++ background.

Thanks for any responses,

Paddy

Is there a specific question in there somewhere?

Leo
Mar 15 '06 #2
"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."

What tool can I use to do this?

Mar 15 '06 #3
I use Dreamweaver 8 for my php apps.

Mar 16 '06 #4
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_co de_coverage() and xdebug_stop_cod e_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_fi le and auto_append_fil e 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!

Mar 16 '06 #5

<pa********@gma il.com> wrote in message
news:11******** *************@j 52g2000cwj.goog legroups.com...
Hi all,

The database that our php applications are running on is getting a
major clean up.
Our QA department have a set of regression plans ...

My idea would be to have them run through their plans on an application
and measure the percentage of the code covered.


If you are looking for a production PHP test coverage tool,
see
http://www.semanticdesigns.com/Produ...tCoverage.html
--
Ira Baxter, CTO
www.semanticdesigns.com
Mar 18 '06 #6
In message <11************ *********@j52g2 000cwj.googlegr oups.com>,
pa********@gmai l.com writes
Our QA department have a set of regression plans but I don't know how
complete they are. Neither do they :(


Software Verification have Code Coverage, Performance Profiling and a
Flow Tracer available for PHP. Currently they are not on the website,
but they will be shown on the website within the next week (the site is
getting a redesign, so they won't show until the redesign is available,
which happens next week).

These tools do not require insertion of any code into your application
or the modification of any of your code. Currently the tools require
PHP5, but plans to support PHP4 are in place.

The Coverage and Performance tools both have command line support so
that you can integrate them with regression tests etc. All tools support
HTML and XML export and the Coverage tools supports the notion of
merging different test results to provide a merged result.

And of course, no need to modify your application to use the tools.

If you are interested in these tools but don't want to wait for the
redesign of the site, take a look at Python Coverage Validator, Python
Performance Validator and Python Bug Validator - the PHP versions are
identical except for the fact they work with PHP rather than Python.

http://www.softwareverify.com
http://www.softwareverify.com/python...tor/index.html
http://www.softwareverify.com/python...tor/index.html
http://www.softwareverify.com/python...tor/index.html

Stephen
--
Stephen Kellett
Object Media Limited http://www.objmedia.demon.co.uk/software.html
Computer Consultancy, Software Development
Windows C++, Java, Assembler, Performance Analysis, Troubleshooting
Mar 19 '06 #7
In message <11************ *********@j52g2 000cwj.googlegr oups.com>,
pa********@gmai l.com writes
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.


PHP Coverage Validator will do what you want. Works with PHP 4 and PHP
5. No need to modify your application. Simply launch from PHP Coverage
Validator and the coverage results are calculated. GUI and command line
operation supported so that you can integrate into your regression
tests.

http://www.softwareverify.com/phpCov...tor/index.html

Stephen
--
Stephen Kellett
Object Media Limited http://www.objmedia.demon.co.uk/software.html
Computer Consultancy, Software Development
Windows C++, Java, Assembler, Performance Analysis, Troubleshooting
Apr 27 '06 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
2777
by: John J. Lee | last post by:
Anybody know of one? Actually, I have a feeling that emacs understands a standard format for errors, which would make it really easy to implement this by having the coverage tool print results in that format -- anybody know where to find the details? I also wonder if some kind of graphical display might be useful somehow, having been inspired by this:
242
13332
by: James Cameron | last post by:
Hi I'm developing a program and the client is worried about future reuse of the code. Say 5, 10, 15 years down the road. This will be a major factor in selecting the development language. Any comments on past experience, research articles, comments on the matter would be much appreciated. I suspect something like C would be the best based on comments I received from the VB news group. Thanks for the help in advance James Cameron
7
2811
by: Kai Zhu | last post by:
Can anybody show me a list of such tools so that I can pick up the tools match my requirement.
2
1777
by: Orin | last post by:
Hi, I have a problem in using coverage.py module in my project: ../cov -c Traceback (most recent call last): File "./cov", line 10, in ? coverage.the_coverage.command_line(sys.argv) File "/usr/lib/python2.4/site-packages/coverage.py", line 363, in command_line self.collect() File "/usr/lib/python2.4/site-packages/coverage.py", line 467, in
1
1355
by: maralle.fakhereddin | last post by:
I am wondering if anyone knows of a good code coverage tool for ASP.Net applications? I already looked at NCover, ANTS profiler and am evaluating AQtime at the moment. Any help would be great. Thanks!
2
1254
by: Noah | last post by:
I'm trying to use the trace module to build coverage files for a multi-threaded program. http://docs.python.org/lib/module-trace.html I test my application using trace.py from the command-line like this: /usr/lib/python2.5/trace.py --missing --count --summary tools/ testall.py
5
4276
by: ev | last post by:
Hello, We are looking for any testing tool that is capable of checking code coverage for C,C ++ and Java code. Or at least for C and C++. We want to know how much (percentage) of our code written on C/C++ is covered in terms of function calls and line calls. We tried Rational PureCoverage. It's excellent but has some limitations in our case. Any idea would be greatly appreciated.
24
2515
by: David | last post by:
Hi list. What strategies do you use to ensure correctness of new code? Specifically, if you've just written 100 new lines of Python code, then: 1) How do you test the new code? 2) How do you ensure that the code will work correctly in the future? Short version:
2
2299
by: innes | last post by:
I can't find anything on this in the VS2008 help (searching for 'coverage' returns no results). Can anyone confirm that VS2008's code coverage functionality doesnt extend to working on C++/CLI assemblies, apart from the least useful type (/clr:safe)? I think I saw that last detail somewhere on the internet. Thanks.
0
8444
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8356
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8781
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8551
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7386
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6198
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5664
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4198
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
1775
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.