summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2016-08-01 17:19:38 +0200
committerFlorian Pritz <bluewind@xinu.at>2016-08-01 17:19:38 +0200
commita1266874b0df706dc92072cc0a371cf7286d488b (patch)
tree0a6decf18b06f181f58808ce9f09e4dff313c94b
parent3feb2a388e490f03779ee90b799fdd7923d1d157 (diff)
Create Clover coverage report
Also don't print the return data of the writer. In the case of clover it's the XML content, with the HTML writer it's nothing. Signed-off-by: Florian Pritz <bluewind@xinu.at>
-rw-r--r--application/controllers/tools.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/application/controllers/tools.php b/application/controllers/tools.php
index e90ed6d5f..7808b11cf 100644
--- a/application/controllers/tools.php
+++ b/application/controllers/tools.php
@@ -114,10 +114,10 @@ class Tools extends MY_Controller {
$coverage->merge(unserialize(file_get_contents($file)));
}
- //$writer = new \SebastianBergmann\CodeCoverage\Report\Text();
- //print $writer->process($coverage, 'code-coverage-report');
+ $writer = new \SebastianBergmann\CodeCoverage\Report\Clover();
+ $writer->process($coverage, 'code-coverage-report.xml');
$writer = new \SebastianBergmann\CodeCoverage\Report\Html\Facade();
- print $writer->process($coverage, 'code-coverage-report');
+ $writer->process($coverage, 'code-coverage-report');
print "Report saved to ./code-coverage-report/index.html\n";
}
}