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 : '')); $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() { function testJavascript() {
$this->compileJs(); $this->compileJs();

View File

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