Merge pull request #322 from mailpoet/code_coverage

Code coverage report
This commit is contained in:
Tautvidas Sipavičius
2016-02-01 16:31:53 +02:00
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 -f '.(($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();