From a1266874b0df706dc92072cc0a371cf7286d488b Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Mon, 1 Aug 2016 17:19:38 +0200 Subject: 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 --- application/controllers/tools.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'application/controllers/tools.php') 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"; } } -- cgit v1.2.3-24-g4f1b