Code coverage report

This commit is contained in:
Jonathan Labreuille
2016-02-01 14:07:54 +01:00
parent b577d33414
commit 41c8c0dae5
2 changed files with 19 additions and 0 deletions

View File

@@ -108,6 +108,16 @@ class RoboFile extends \Robo\Tasks {
$this->_exec('vendor/bin/codecept run unit '.(($file) ? $file : ''));
}
function testCoverage() {
$this->loadEnv();
$this->_exec('vendor/bin/codecept build');
$this->_exec(join(' ', array(
'vendor/bin/codecept run',
'--coverage',
'--coverage-html'
)));
}
function testJavascript() {
$this->compileJs();

View File

@@ -19,3 +19,12 @@ modules:
user: ''
password: ''
dump: tests/_data/dump.sql
coverage:
enabled: true
whitelist:
include:
- lib/*
exclude:
blacklist:
include:
exclude: