mercredi 17 août 2016

Any way to get the php code coverage for manual testing?

We have an app, and the server is wrote in PHP.

Now I want to get the php code coverage for the manual testing team, thus help them improve their work.

The php code coverage looks good, the usage is as below:

$coverage = new PHP_CodeCoverage;
$coverage->start('<name of test>');

// do the testing

$coverage->stop();

$writer = new PHP_CodeCoverage_Report_Clover;
$writer->process($coverage, '/tmp/clover.xml');

But if a method has 3 branches, every time I send a request, there will be a report showing the coverage is 1/3. But what I want is to have a report for all my manual testing requests, is there a way to get it?

Or just have one report for each request, and then merge them.

Aucun commentaire:

Enregistrer un commentaire