Merge pull request #322 from mailpoet/code_coverage
Code coverage report
This commit is contained in:
10
RoboFile.php
10
RoboFile.php
@@ -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();
|
||||||
|
|
||||||
|
@@ -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:
|
Reference in New Issue
Block a user