Code coverage tools for PHP applications?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • patrickmee@gmail.com

    #1

    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

  • Leopold Stotch

    #2
    Re: Code coverage tools for PHP applications?

    patrickmee@gmai l.com wrote:[color=blue]
    > 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
    >[/color]
    Is there a specific question in there somewhere?

    Leo

    Comment

    • Paddy

      #3
      Re: Code coverage tools for PHP applications?

      "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?

      Comment

      • pizzy

        #4
        Re: Code coverage tools for PHP applications?

        I use Dreamweaver 8 for my php apps.

        Comment

        • Adam Harvey

          #5
          Re: Code coverage tools for PHP applications?

          On Wed, 15 Mar 2006 14:20:38 -0800, patrickmee wrote:[color=blue]
          > 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.[/color]

          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!

          Comment

          • Ira Baxter

            #6
            Re: Code coverage tools for PHP applications?


            <patrickmee@gma il.com> wrote in message
            news:1142461238 .352899.86570@j 52g2000cwj.goog legroups.com...[color=blue]
            > 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.[/color]

            If you are looking for a production PHP test coverage tool,
            see



            --
            Ira Baxter, CTO
            software, analysis, translation, porting, modification, generation, synthesis, reengineering, reverse engineering, testing, Hogan System, PLEX, AS/400, migration, program transformation, rules, parser, domain-specific, legacy, C/C++, Java, XML, COBOL, Ada, Fortran, PL/1, Agile, Testing, refactoring



            Comment

            • Stephen Kellett

              #7
              Re: Code coverage tools for PHP applications?

              In message <1142461238.352 899.86570@j52g2 000cwj.googlegr oups.com>,
              patrickmee@gmai l.com writes[color=blue]
              >Our QA department have a set of regression plans but I don't know how
              >complete they are. Neither do they :([/color]

              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.

              Software tools for code coverage, memory leak detection, performance profiling, deadlock detection, execution tracing. C++, C, C#, VB6, Delphi

              Listing of all our software tools for each language and technology that we support.

              Code coverage software tool for Python. Visualize your code coverage in minutes. Automate testing of python code coverage.



              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

              Comment

              • Stephen Kellett

                #8
                Re: Code coverage tools for PHP applications?

                In message <1142461238.352 899.86570@j52g2 000cwj.googlegr oups.com>,
                patrickmee@gmai l.com writes[color=blue]
                >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.[/color]

                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.

                Listing of all our software tools for each language and technology that we support.


                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

                Comment

                Working...