Tingting
Tingting

Reputation: 157

how to use phpunit and xdebug to get code coverage

I want to get code coverage for a web site. I need to do manual test instead of writing code.

The source code of the web site and xdebug, phpunit are on a linux server.now I start apache and open the web site. I just don't know how to get the coverage of my manual test.

what I expect is this:

  1. Make some config on server
  2. Open my web site and do many manual test
  3. Use some method to get the code coverage

Dose phpunit + xdebug can do this? I need a report, html is good.

PS. I am a newer... my English and skill is not very well... so Please be patient, Thanks very much

Upvotes: 0

Views: 2097

Answers (1)

powtac
powtac

Reputation: 41050

Simply follow all steps in the PHPUnit Manual, Code-Coverage Analysis.

If you want to do code coverage with manual fronted tests. Hava a look at Selenium IDE together with PHP Unit.

Upvotes: 3

Related Questions